Flow price: --
63a40c1370ef6a28c48892ad0180f41f6184b1a74ee755ec08765b1e8984f991

Transaction

Hash: 63a40c1370ef6a28c48892ad0180f41f6184b1a74ee755ec08765b1e8984f991
error
Error

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.")
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Hash:
63a40c1370ef6a28c48892ad0180f41f6184b1a74ee755ec08765b1e8984f991
Status:
ERROR
Block height:
158203
Block id:
fbabd9252aeed7baefee3c2a1aaf79f99584a08ba9824803058748d6fbd14ecd
Timestamp:
Thursday 29 February 2024 at 19:45:22 UTC
()
Proposer:
Authorizers:
Gas used:
0