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: Parsing failed:
error: missing comma after parameter
--> :8:32
|
8 | pub event Withdraw(id: UInt64 from: Address?)
| ^
error: missing comma after parameter
--> :9:31
|
9 | pub event Deposit(id: UInt64 to: Address?)
| ^
--> e3e2d935fa434f35a49a8240a87e0c02b5650f65961aca127e224ce5fe1c13be:72:12
|
72 | if acct.borrow<&AnyResource>(from: collectionData.storagePath) == nil {
73 | acct.save(<- collectionData.createEmptyCollection(), to: collectionData.storagePath)
74 | }
| ^