tx · 2M8GBSTEThXss3wCgToCcdfeynAjL2Lda7SriUoAsUAY

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00100000 Waves

2023.03.05 00:03 [2475831] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "2M8GBSTEThXss3wCgToCcdfeynAjL2Lda7SriUoAsUAY", "fee": 100000, "feeAssetId": null, "timestamp": 1677963795539, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "3TWxJX4RAbwprdxS1rFqM2ZMNraasX7yX7rUMNwozV4JzJJqvwpoqk3G4mWkpfBJ8cQLdbWLzNkgNrR7r8voedNk" ], "script": "base64:BgIOCAISBAoCCAgSBAoCCAgDAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwIOY29sbGVjdGlvbk5hbWUAC2Rlc2NyaXB0aW9uCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgtkZXNjcmlwdGlvbgALdG90YWxBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMCC3RvdGFsQW1vdW50AgFpAQRpbml0Ag5jb2xsZWN0aW9uTmFtZQtkZXNjcmlwdGlvbgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAMwIAgkBC1N0cmluZ0VudHJ5AgIOY29sbGVjdGlvbk5hbWUFDmNvbGxlY3Rpb25OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQICC2Rlc2NyaXB0aW9uBQtkZXNjcmlwdGlvbgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQAAAUDbmlsCQACAQIJb25seSBkQXBwAWkBBG1pbnQCAnRvCHRva2VuVVJJAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHdG9rZW5JZAkAZAIFC3RvdGFsQW1vdW50AAEEBG5hbWUJAKwCAgkArAICBQ5jb2xsZWN0aW9uTmFtZQIBIwkApAMBBQd0b2tlbklkBAVhc3NldAkAwwgHBQRuYW1lBQtkZXNjcmlwdGlvbgABAAAHBQR1bml0BQZoZWlnaHQEB2Fzc2V0SWQJALgIAQUFYXNzZXQECXRvQWRkcmVzcwkBB0FkZHJlc3MBCQDZBAEFAnRvCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXRvQWRkcmVzcwABBQdhc3NldElkCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAUHdG9rZW5JZAkAzAgCCQELU3RyaW5nRW50cnkCBQRuYW1lBQh0b2tlblVSSQUDbmlsCQACAQIJb25seSBkQXBwACTe5QE=", "height": 2475831, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: bYKEUBeV2fTpSkdzW3X3LZcPhpaWHWLJqyosfHHcGCR Next: C8sYBtfqNvttRwE3xphfotNLAdQScTaAt2ThqRsjSGZk Diff:
OldNewDifferences
2121 let name = ((collectionName + "#") + toString(tokenId))
2222 let asset = Issue(name, description, 1, 0, false, unit, height)
2323 let assetId = calculateAssetId(asset)
24- let toAddress = addressFromPublicKey(if ((size(to) == 35))
25- then fromBase58String(to)
26- else fromBase64String(to))
24+ let toAddress = Address(fromBase58String(to))
2725 [ScriptTransfer(toAddress, 1, assetId), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
2826 }
2927 else throw("only dApp")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let collectionName = getStringValue(this, "collectionName")
55
66 let description = getStringValue(this, "description")
77
88 let totalAmount = getIntegerValue(this, "totalAmount")
99
1010 @Callable(i)
1111 func init (collectionName,description) = if ((i.caller == this))
1212 then [StringEntry("collectionName", collectionName), StringEntry("description", description), IntegerEntry("totalAmount", 0)]
1313 else throw("only dApp")
1414
1515
1616
1717 @Callable(i)
1818 func mint (to,tokenURI) = if ((i.caller == this))
1919 then {
2020 let tokenId = (totalAmount + 1)
2121 let name = ((collectionName + "#") + toString(tokenId))
2222 let asset = Issue(name, description, 1, 0, false, unit, height)
2323 let assetId = calculateAssetId(asset)
24- let toAddress = addressFromPublicKey(if ((size(to) == 35))
25- then fromBase58String(to)
26- else fromBase64String(to))
24+ let toAddress = Address(fromBase58String(to))
2725 [ScriptTransfer(toAddress, 1, assetId), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
2826 }
2927 else throw("only dApp")
3028
3129

github/deemru/w8io/026f985 
26.91 ms