Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot find type in this scope: `SdmToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:34:31
|
34 | if (signer.borrow<&SdmToken.Vault>(from: /storage/sdmTokenVault) == nil) {
| ^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:34:16
|
34 | if (signer.borrow<&SdmToken.Vault>(from: /storage/sdmTokenVault) == nil) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `SdmToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:36:30
|
36 | signer.save(<-SdmToken.createEmptyVault(), to: /storage/sdmTokenVault)
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `SdmToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:40:29
|
40 | signer.link<&SdmToken.Vault{FungibleToken.Receiver}>(
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `FungibleToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:40:44
|
40 | signer.link<&SdmToken.Vault{FungibleToken.Receiver}>(
| ^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:40:16
|
40 | signer.link<&SdmToken.Vault{FungibleToken.Receiver}>(
41 | /public/sdmTokenReceiver,
42 | target: /storage/sdmTokenVault
43 | )
| ^
error: cannot find type in this scope: `SdmToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:47:29
|
47 | signer.link<&SdmToken.Vault{FungibleToken.Balance}>(
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `FungibleToken`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:47:44
|
47 | signer.link<&SdmToken.Vault{FungibleToken.Balance}>(
| ^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> f72d9ce50e63068f48bea4db341b1fe056cbef4ea50b8c5ea0e563f6e20e3e14:47:16
|
47 | signer.link<&SdmToken.Vault{FungibleToken.Balance}>(
48 | /public/sdmTokenBalance,
49 | target: /storage/sdmTokenVault
50 | )
| ^