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
--> 114e8244158f5585abb58388b84c49e0ee4427571d798ef5182b4010823b37a4:3:2
|
3 | signer.contracts.update__experimental(name: name, code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> a10dde51240c1ec7.Gomoku:211:37
|
211 | self.latestBlockHeight = UInt32(getCurrentBlock().height)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `UInt64`, got `UInt32`
error: mismatched types
--> a10dde51240c1ec7.Gomoku:212:38
|
212 | self.blockHeightTimeout = UInt32(60 * 60 * 24 * 7)
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `UInt64`, got `UInt32`
error: resource `Gomoku.Stone` does not conform to resource interface `GomokuType.Stoning`
--> a10dde51240c1ec7.Gomoku:281:17
|
281 | pub resource Stone: GomokuType.Stoning {
| ^
...
|
297 | pub fun convertToData(): StoneData {
| ------------- mismatch here