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
--> 145af9105b1039c190f4ffb67997b9aaf5b60a3ca36f226dc60b34ce7c092867:4:14
|
4 | acct.contracts.add(name: name, code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: statements on the same line must be separated with a semicolon
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:86:18
|
86 | guard let serializedElement = tryToJSONString(element) else {
| ^
error: statements on the same line must be separated with a semicolon
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:86:67
|
86 | guard let serializedElement = tryToJSONString(element) else {
| ^
error: expected token ':'
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:87:23
|
87 | return nil
| ^