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
--> 4cad8fbbd9ddb9a42935fcce75072c8f30cb14b88e5ba6f9c5fdd6d577b50f4a:4:3
|
4 | signer.contracts.add(name: name, code: code.decodeHex() )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: value of type `AuthAccount` has no member `capabilities`
--> 35f9e7ac86111b22.WonderlandRewardAlgorithm:50:21
|
50 | self.account.capabilities.unpublish(self.AlgorithmPublicPath)
| ^^^^^^^^^^^^ unknown member
error: value of type `AuthAccount` has no member `capabilities`
--> 35f9e7ac86111b22.WonderlandRewardAlgorithm:52:37
|
52 | let issuedCap = self.account.capabilities.storage.issue<&WonderlandRewardAlgorithm.Algorithm{RewardAlgorithm.Algorithm}>(self.AlgorithmStoragePath)
| ^^^^^^^^^^^^ unknown member
error: value of type `AuthAccount` has no member `capabilities`
--> 35f9e7ac86111b22.WonderlandRewardAlgorithm:54:21
|
54 | self.account.capabilities.publish(issuedCap, at: self.AlgorithmPublicPath)
| ^^^^^^^^^^^^ unknown member
error: value of type `AuthAccount` has no member `capabilities`
--> 35f9e7ac86111b22.WonderlandRewardAlgorithm:40:108
|
40 | let cap: Capability<&WonderlandRewardAlgorithm.Algorithm{RewardAlgorithm.Algorithm}> = self.account.capabilities.get<&WonderlandRewardAlgorithm.Algorithm{RewardAlgorithm.Algorithm}>(self.AlgorithmPublicPath)!
| ^^^^^^^^^^^^ unknown member