Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
--> 63a40c1370ef6a28c48892ad0180f41f6184b1a74ee755ec08765b1e8984f991:4:3
|
4 | signer.contracts.add(name: name, code: code.utf8 )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `bytecode`
--> 56e1dd815785e02b.SimpleLotteryVRF:120:18
|
120 | code: bytecode.decodeHex(),
| ^^^^^^^^ not found in this scope
error: mismatched types
--> 56e1dd815785e02b.SimpleLotteryVRF:124:67
|
124 | assert(self.lotteryContractAddress.bytes != EVM.EVMAddress(0x0), message: "Deployment failed.")
| ^^^ expected `[UInt8; 20]`, got `Int`
error: missing argument label: `bytes`
--> 56e1dd815785e02b.SimpleLotteryVRF:124:67
|
124 | assert(self.lotteryContractAddress.bytes != EVM.EVMAddress(0x0), message: "Deployment failed.")
| ^^^
error: cannot apply binary operation != to types: `[UInt8; 20]`, `EVM.EVMAddress`
--> 56e1dd815785e02b.SimpleLotteryVRF:124:15
|
124 | assert(self.lotteryContractAddress.bytes != EVM.EVMAddress(0x0), message: "Deployment failed.")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^