diff --git a/cadence/contracts/test/EVMDeployer.cdc b/cadence/contracts/test/EVMDeployer.cdc index 7f3edb1b..b12bf956 100644 --- a/cadence/contracts/test/EVMDeployer.cdc +++ b/cadence/contracts/test/EVMDeployer.cdc @@ -1,5 +1,7 @@ import "EVM" +/// NOTE: NOT INTENDED FOR PRODUCTION USE - USED FOR TEMPORARY TESTING PURPOSES ONLY +/// /// This contract is intended for testing purposes for the sake of capturing a deployed contract addresses while native /// `evm.TransactionExecuted` event types are not available in Cadence testing framework. The deploying account should /// already be configured with a `CadenceOwnedAccount` resource in storage at `/storage/evm`. @@ -7,7 +9,7 @@ import "EVM" access(all) contract EVMDeployer { access(all) let deployedAddresses: {String: EVM.EVMAddress} - + access(all) fun deploy(name: String, bytecode: String, value: UInt) { pre { self.deployedAddresses[name] == nil: "Already deployed contract under provided" @@ -22,7 +24,7 @@ access(all) contract EVMDeployer { ) self.deployedAddresses[name] = deploymentAddress } - + access(self) fun borrowCOA(): auth(EVM.Deploy) &EVM.CadenceOwnedAccount { return self.account.storage.borrow(from: /storage/evm) ?? panic("No COA found in storage")