cadence
cadence copied to clipboard
[Test Framework] Add helper function for contract deployment
Work towards https://github.com/onflow/cadence/issues/331
Description
Introduced a utility function to deploy a contract to the blockchain.
let err = blockchain.deployContract(
contractName,
contractCode,
authorizerAddress,
signers,
contractInitArgs,
)
Devs can also deploy contracts using a transaction. This is a utility method that does the same under the hood.
- [ ] Targeted PR against
masterbranch - [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
- [x] Code follows the standards mentioned here
- [x] Updated relevant documentation
- [x] Re-reviewed
Files changedin the Github PR explorer - [x] Added appropriate labels