Skip to content

Commit

Permalink
fix: typegen factory template (#3274)
Browse files Browse the repository at this point in the history
* Adding [missing] override spec

* Adding changeset
  • Loading branch information
arboleya authored and Dhaiwat10 committed Nov 19, 2024
1 parent 1fcc2cc commit f86bfa4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-islands-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/abi-typegen": patch
---

fix: typegen factory template
2 changes: 1 addition & 1 deletion packages/abi-typegen/src/templates/contract/factory.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class {{capitalizedName}}Factory extends ContractFactory {
super(bytecode, {{capitalizedName}}.abi, accountOrProvider);
}

deploy<TContract extends Contract = Contract>(
override deploy<TContract extends Contract = Contract>(
deployOptions?: DeployContractOptions
): Promise<DeployContractResult<TContract>> {
return super.deploy({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class MyContractFactory extends ContractFactory {
super(bytecode, MyContract.abi, accountOrProvider);
}

deploy<TContract extends Contract = Contract>(
override deploy<TContract extends Contract = Contract>(
deployOptions?: DeployContractOptions
): Promise<DeployContractResult<TContract>> {
return super.deploy({
Expand Down

0 comments on commit f86bfa4

Please sign in to comment.