diff --git a/.changeset/twenty-islands-drum.md b/.changeset/twenty-islands-drum.md new file mode 100644 index 00000000000..e0bf4de79b4 --- /dev/null +++ b/.changeset/twenty-islands-drum.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/abi-typegen": patch +--- + +fix: typegen factory template diff --git a/packages/abi-typegen/src/templates/contract/factory.hbs b/packages/abi-typegen/src/templates/contract/factory.hbs index bb033f843a4..c232f423fc3 100644 --- a/packages/abi-typegen/src/templates/contract/factory.hbs +++ b/packages/abi-typegen/src/templates/contract/factory.hbs @@ -15,7 +15,7 @@ export class {{capitalizedName}}Factory extends ContractFactory { super(bytecode, {{capitalizedName}}.abi, accountOrProvider); } - deploy( + override deploy( deployOptions?: DeployContractOptions ): Promise> { return super.deploy({ diff --git a/packages/abi-typegen/test/fixtures/templates/contract/factory.hbs b/packages/abi-typegen/test/fixtures/templates/contract/factory.hbs index 99cde0a2361..58db2e250ff 100644 --- a/packages/abi-typegen/test/fixtures/templates/contract/factory.hbs +++ b/packages/abi-typegen/test/fixtures/templates/contract/factory.hbs @@ -25,7 +25,7 @@ export class MyContractFactory extends ContractFactory { super(bytecode, MyContract.abi, accountOrProvider); } - deploy( + override deploy( deployOptions?: DeployContractOptions ): Promise> { return super.deploy({