Skip to content

Commit

Permalink
add abi to contract
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Oct 18, 2024
1 parent d303c11 commit 70481d5
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/contract.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class {{name}} extends Contract {
declare interface: {{name}}Interface;
declare functions: ProgramFunctionMapper<{{name}}Types['functions']>;

public static readonly abi: AbiSpecification = abi;

constructor(
id: string | AbstractAddress,
accountOrProvider: Account | Provider,
Expand Down
2 changes: 2 additions & 0 deletions packages/fuel-gauge/src/abi/fixtures/contract.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export class AbiContract extends Contract {
declare interface: AbiContractInterface;
declare functions: ProgramFunctionMapper<AbiContractTypes['functions']>;

public static readonly abi: AbiSpecification = abi;

constructor(
id: string | AbstractAddress,
accountOrProvider: Account | Provider,
Expand Down

0 comments on commit 70481d5

Please sign in to comment.