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
--> fb22e1866daff4401cf9b5331a9f587c1f499cc0a37212cb9af42c8ccb4f8ba3:3:2
|
3 | signer.contracts.update__experimental(name: name, code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: incorrect transfer operation
--> a10dde51240c1ec7.Gomoku:82:26
|
82 | let vault = mapRef[key]
| ^ expected `<-`
error: cannot move nested resource
--> a10dde51240c1ec7.Gomoku:82:34
|
82 | let vault = mapRef[key]
| ^^^^^
error: value of type `FlowToken.Vault?` has no member `withdraw`
--> a10dde51240c1ec7.Gomoku:83:39
|
83 | let flowToken <- vault.withdraw(amount: vault.balance)
| ^^^^^^^^ type is optional, consider optional-chaining: ?.withdraw
error: value of type `FlowToken.Vault?` has no member `balance`
--> a10dde51240c1ec7.Gomoku:83:62
|
83 | let flowToken <- vault.withdraw(amount: vault.balance)
| ^^^^^^^ type is optional, consider optional-chaining: ?.balance
error: loss of resource
--> a10dde51240c1ec7.Gomoku:79:20
|
79 | let placeholderVault: @FlowToken.Vault? <- FlowToken.createEmptyVault() as! @FlowToken.Vault
| ^^^^^^^^^^^^^^^^