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
--> 14b06910c6b337ac4a42f31be9f44251eac5164096c06f746c95da764cd87a46:4:14
|
4 | acct.contracts.add(name: name, code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `arrayToJSONString`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:9:19
|
9 | return arrayToJSONString(arrayValue)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `dictToJSONString`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:11:19
|
11 | return dictToJSONString(dict: dictValue, excludedNames: nil)
| ^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `serializePrimitive`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:13:19
|
13 | return serializePrimitive(value)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `tryToJSONString`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:85:36
|
85 | let serializedElement = tryToJSONString(element)
| ^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `tryToJSONString`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:109:34
|
109 | let serializedValue = tryToJSONString(dict[key]!)
| ^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `tryToJSONString`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:113:51
|
113 | serializedDict = serializedDict.concat(tryToJSONString(key)!).concat(": ").concat(serializedValue!)
| ^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `serializeFromDisplays`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:125:22
|
125 | let display = serializeFromDisplays(nftDisplay: nftDisplay, collectionDisplay: collectionDisplay)
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `serializeNFTTraitsAsAttributes`
--> 118a7b5d3ff8b83e.NFTMetadataSerializer:128:25
|
128 | let attributes = serializeNFTTraitsAsAttributes(traits: traits ?? MetadataViews.Traits([]))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope