tx · 6birTWDgZmQjC2GUdwdVaMHSA8hEZv68txYdwfFqpQgK

3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW:  -0.01400000 Waves

2021.12.05 12:28 [1820788] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves

{ "type": 13, "id": "6birTWDgZmQjC2GUdwdVaMHSA8hEZv68txYdwfFqpQgK", "fee": 1400000, "feeAssetId": null, "timestamp": 1638696502871, "version": 2, "chainId": 84, "sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW", "senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv", "proofs": [ "3dSrQHhQEwxpaghwCidgc69Q5uq4HTwi7vrn41UDuP8rBgBGtT1ao2G55yhy1sPAqaDBKxkXriwmZziVUWENzTZ9" ], "script": "base64:AAIEAAAAAAAAAA4IAhIDCgEIEgUKAwECCAAAAAAAAAACAAAAAWkBAAAABm1pbnRtZQAAAAEAAAAEaW5mbwQAAAAHY291bnRlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAdjb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAJAABkAAAAAgUAAAABYQAAAAAAAAAAAQAAAAAAAAAAAAQAAAACc3QJAAGkAAAAAQUAAAAHY291bnRlcgQAAAAEbmFtZQIAAAAKTURTVC1ORlQgIwQAAAAFZm5hbWUJAAEsAAAAAgUAAAAEbmFtZQUAAAACc3QEAAAABWlzc3VlCQAEQgAAAAUFAAAABWZuYW1lBQAAAARpbmZvAAAAAAAAAAABAAAAAAAAAAAABwQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgUAAAAFaXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAAFaXNzdWUAAAAIcXVhbnRpdHkFAAAAAmlkCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAdjb3VudGVyBQAAAAdjb3VudGVyBQAAAANuaWwAAAABaQEAAAAGYnV5bmZ0AAAAAwAAAANjbnQAAAAFaWRuZnQAAAAEaW5mbwQAAAAFZm5hbWUCAAAADU1EU1QtTkZULUNPUFkEAAAAAXgEAAAAByRtYXRjaDAJAAPsAAAAAQUAAAAFaWRuZnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABUFzc2V0BAAAAAVhc3NldAUAAAAHJG1hdGNoMAgFAAAABWFzc2V0AAAAC2Rlc2NyaXB0aW9uCQAAAgAAAAECAAAAEENhbid0IGZpbmQgYXNzZXQEAAAABWlzc3VlCQAEQgAAAAUFAAAABWZuYW1lBQAAAARpbmZvAAAAAAAAAAABAAAAAAAAAAAABwQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgkAAAIAAAABCQABLAAAAAICAAAAB3RoZSB4IDoFAAAAAXgFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5GEyMTQ==", "height": 1820788, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C7ycA9cnPCjjo7siCxrsgus5DGVjvyPcjiLRNQTKPXog Next: 4q9ztFLMyBg218cA6nrwBTtXMnQ7TKwCxZJmU1CY2A8k Diff:
OldNewDifferences
2020 }
2121
2222
23+
24+@Callable(i)
25+func buynft (cnt,idnft,info) = {
26+ let fname = "MDST-NFT-COPY"
27+ let x = match assetInfo(idnft) {
28+ case asset: Asset =>
29+ asset.description
30+ case _ =>
31+ throw("Can't find asset")
32+ }
33+ let issue = Issue(fname, info, 1, 0, false)
34+ let id = calculateAssetId(issue)
35+[throw(("the x :" + x))]
36+ }
37+
38+
2339 @Verifier(tx)
2440 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2541
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func mintme (info) = {
88 let counter = match getInteger(this, "counter") {
99 case a: Int =>
1010 (a + 1)
1111 case _ =>
1212 0
1313 }
1414 let st = toString(counter)
1515 let name = "MDST-NFT #"
1616 let fname = (name + st)
1717 let issue = Issue(fname, info, 1, 0, false)
1818 let id = calculateAssetId(issue)
1919 [issue, ScriptTransfer(i.caller, issue.quantity, id), IntegerEntry("counter", counter)]
2020 }
2121
2222
23+
24+@Callable(i)
25+func buynft (cnt,idnft,info) = {
26+ let fname = "MDST-NFT-COPY"
27+ let x = match assetInfo(idnft) {
28+ case asset: Asset =>
29+ asset.description
30+ case _ =>
31+ throw("Can't find asset")
32+ }
33+ let issue = Issue(fname, info, 1, 0, false)
34+ let id = calculateAssetId(issue)
35+[throw(("the x :" + x))]
36+ }
37+
38+
2339 @Verifier(tx)
2440 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2541

github/deemru/w8io/026f985 
33.16 ms