We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
launchTestNode
typegen
Once #2707 goes through, the interface of launchTestNode can be simplified:
import { launchTestNode } from 'fuels/test-utils'; import { CallTestContractAbi__factory } from '../test/typegen/contracts'; const { contracts: [contract], cleanup, } = await launchTestNode({ contractsConfigs: [ CallTestContractAbi__factory, { factory: CallTestContractAbi__factory, options: { storageSlots: {}, ... } } ], });
The contractsConfigs can now accept a factory directly without having to specify the bytecode field
contractsConfigs
bytecode
contractConfigs: [ CallTestContractAbi__factory ]
but there can still be flexibility for when users want to use DeployContractOptions via the options property:
DeployContractOptions
options
contractConfigs: [ { factory: CallTestContractAbi__factory, options: { storageSlots: {}, ... } } ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Once #2707 goes through, the interface of
launchTestNode
can be simplified:The
contractsConfigs
can now accept a factory directly without having to specify thebytecode
fieldbut there can still be flexibility for when users want to use
DeployContractOptions
via theoptions
property:bytecode
to factory outputted bytypegen
#2707The text was updated successfully, but these errors were encountered: