In the 0.92.0 update, according to Migrations & Disclosures | Fuel Docs the deployContract function has changed its return type.
The factory generated by fuels build still has the old signature:
Updated fuel-toolchain.toml in sway-programs:
[toolchain]
channel = "nightly"
[components]
forc = "0.62.0"
fuel-core = "0.31.0"
active toolchain
----------------
nightly-x86_64-apple-darwin (default)
forc : 0.62.0+nightly.20240802.24e7ebfcea
- forc-client
- forc-deploy : 0.62.0+nightly.20240802.24e7ebfcea
- forc-run : 0.62.0+nightly.20240802.24e7ebfcea
- forc-crypto : 0.62.0+nightly.20240802.24e7ebfcea
- forc-debug : 0.62.0+nightly.20240802.24e7ebfcea
- forc-doc : 0.62.0+nightly.20240802.24e7ebfcea
- forc-fmt : 0.62.0+nightly.20240802.24e7ebfcea
- forc-lsp : 0.62.0+nightly.20240802.24e7ebfcea
- forc-tx : 0.62.0+nightly.20240802.24e7ebfcea
- forc-wallet : 0.8.2+nightly.20240802.76e9796cbe
fuel-core : 0.31.0+nightly.20240802.c2f5a3a64c
fuel-core-keygen : not found
running
pnpm dlx fuels build
The result in one of the factories is:
async deployContract(
bytecode: BytesLike,
wallet: Account,
options: DeployContractOptions = {}
): Promise<DeployContractResult<PropsFeeSplitterContractAbi>> {
const factory = new ContractFactory(bytecode, _abi, wallet);
return factory.deployContract<PropsFeeSplitterContractAbi>({
storageSlots: _storageSlots,
...options,
});
},
This is the old signature. Any idea why that might be?