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
--> d8825dd18d0c9a3c3b3091cce2653619001c955084ac8c7cbd9b90006567c270:4:3
|
4 | signer.contracts.add(name: name, code: code.utf8 )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> f4901f2f8dbee0f7.FlowColdStorageProxy:159:41
|
159 | self.VaultCapabilityPublicPath = "/public/flowColdStorageProxyVault"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `String`
error: mismatched types
--> f4901f2f8dbee0f7.FlowColdStorageProxy:160:42
|
160 | self.VaultCapabilityStoragePath = "/storage/flowColdStorageProxyVault"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `StoragePath`, got `String`
error: cannot find variable in this scope: `AuthAccount`
--> f4901f2f8dbee0f7.FlowColdStorageProxy:142:19
|
142 | let acct = AuthAccount(payer: payer)
| ^^^^^^^^^^^ not found in this scope
error: mismatched types
--> f4901f2f8dbee0f7.FlowColdStorageProxy:53:66
|
53 | self.flowVault <- FlowToken.createEmptyVault(balance: 0.0)
| ^^^ expected `Type`, got `UFix64`
error: incorrect argument label
--> f4901f2f8dbee0f7.FlowColdStorageProxy:53:57
|
53 | self.flowVault <- FlowToken.createEmptyVault(balance: 0.0)
| ^^^^^^^^ expected `vaultType`, got `balance`
error: value of type `&Account` has no member `getCapability`
--> f4901f2f8dbee0f7.FlowColdStorageProxy:119:17
|
119 | .getCapability<&{FungibleToken.Receiver}>(/public/flowTokenReceiver)
| ^^^^^^^^^^^^^ unknown member
error: resource `FlowColdStorageProxy.Vault` does not conform to resource interface `FungibleToken.Receiver`
--> f4901f2f8dbee0f7.FlowColdStorageProxy:47:25
|
47 | access(all) resource Vault: FungibleToken.Receiver {
| ^ `FlowColdStorageProxy.Vault` is missing definitions for members: `getSupportedVaultTypes`, `isSupportedVaultType`