Skip to content

Commit

Permalink
add bytecode to script
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Oct 18, 2024
1 parent 48e6257 commit d303c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/abi/src/gen/renderers/ts/templates/script.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export class {{name}} extends Script<
{{name}}Types['functions']['main']['inputs'],
{{name}}Types['functions']['main']['output']
> {
public static readonly bytecode = bytecode;

constructor(wallet: Account) {
super(bytecode, abi, wallet);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/fuel-gauge/src/abi/fixtures/script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export class AbiScript extends Script<
AbiScriptTypes['functions']['main']['inputs'],
AbiScriptTypes['functions']['main']['output']
> {
public static readonly bytecode = bytecode;

constructor(wallet: Account) {
super(bytecode, abi, wallet);
}
Expand Down

0 comments on commit d303c11

Please sign in to comment.