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: mismatched types
--> b62051a4d1f9b9b727a4ae052560e61a142d40e4a153a450b3939ac400df17eb:9:73
|
9 | let payerVaultRef = signer.capabilities.borrow<&FlowToken.Vault>(/storage/flowTokenVault)!
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> b62051a4d1f9b9b727a4ae052560e61a142d40e4a153a450b3939ac400df17eb:13:31
|
13 | let tokensWithdrawn <- payerVaultRef.withdraw(amount: startingBalance)
| ^^^^^^^^^^^^^^^^^^^^^^
error: value of type `view fun(rawValue: UInt8): SignatureAlgorithm?` has no member `ECDSA_Secp256k1`
--> b62051a4d1f9b9b727a4ae052560e61a142d40e4a153a450b3939ac400df17eb:19:84
|
19 | signatureAlgorithm: SignatureAlgorithm(rawValue: SignatureAlgorithm.ECDSA_Secp256k1)!
| ^^^^^^^^^^^^^^^ unknown member
error: mismatched types
--> b62051a4d1f9b9b727a4ae052560e61a142d40e4a153a450b3939ac400df17eb:21:51
|
21 | hashAlgorithm: HashAlgorithm(rawValue: HashAlgorithm.SHA3_256)!,
| ^^^^^^^^^^^^^^^^^^^^^^ expected `UInt8`, got `HashAlgorithm`