Skip to content

Commit

Permalink
Merge pull request #482 from casper-ecosystem/bugfix/entrypoint-seria…
Browse files Browse the repository at this point in the history
…lization

Bugfix: entrypoint serialization
  • Loading branch information
alexmyshchyshyn authored Dec 23, 2024
2 parents d621e84 + 8acbf7a commit 1690bf8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/types/TransactionEntryPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,8 @@ export class TransactionEntryPoint {
this.type === TransactionEntryPointEnum.Custom &&
this.customEntryPoint
) {
const customSerialization = new CalltableSerialization();
customSerialization.addField(0, Uint8Array.from([1]));
customSerialization.addField(
1,
CLValueString.newCLString(this.customEntryPoint).bytes()
);

calltableSerialization.addField(1, customSerialization.toBytes());
const entryPointBytes = CLValueString.newCLString(this.customEntryPoint).bytes()
calltableSerialization.addField(1, entryPointBytes);
}

return calltableSerialization.toBytes();
Expand Down

0 comments on commit 1690bf8

Please sign in to comment.