Skip to content

Commit e5e786e

Browse files
committed
♻️ Fixing component update discriminator
1 parent 3460f51 commit e5e786e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clients/typescript/src/world/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ async function createApplySystemInstruction({
516516

517517
// Build discriminators per component in order of remaining accounts pairs
518518
const discriminators: Buffer[] = components.map((component) =>
519-
Component.from(component.id).getMethodDiscriminator(
519+
new Component(component.id, component.name).getMethodDiscriminator(
520520
session ? "update_with_session" : "update",
521521
),
522522
);

docs/REPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ xychart
44
title "Bolt Apply System Cost"
55
x-axis ["1C-CPIs:2","2C-CPIs:3","3C-CPIs:4","4C-CPIs:5","5C-CPIs:6","6C-CPIs:7","7C-CPIs:8","8C-CPIs:9","9C-CPIs:10","10C-CPIs:11"]
66
y-axis "CU" 5000 --> 200000
7-
bar [15408,24301,33219,42163,51299,60304,69355,78626,87897,97033]
7+
bar [15296,24187,33103,42045,51179,60182,69231,78500,87769,96903]
88
bar [6261,11434,16602,21770,26938,32110,37301,42684,47875,53067]
99
```

0 commit comments

Comments
 (0)