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: value of type `auth(FungibleToken.Withdraw) &USDCFlow.Vault?` has no member `balance`
--> f344573da140e7a3e921c9dc272c1e73cff13ab2c93200865b477e138667271d:54:41
|
54 | let balance: UFix64 = vaultRef.balance
| ^^^^^^^ type is optional, consider optional-chaining: ?.balance
error: value of type `auth(FungibleToken.Withdraw) &USDCFlow.Vault?` has no member `withdraw`
--> f344573da140e7a3e921c9dc272c1e73cff13ab2c93200865b477e138667271d:61:32
|
61 | from: <- vaultRef.withdraw(amount: balance)
| ^^^^^^^^ type is optional, consider optional-chaining: ?.withdraw