tx · FapjUHz5b8Wq9tbnDNuAXNtY8i1YmbQsXSdsfS5PCKsE

3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb:  -0.01400000 Waves

2020.09.12 04:46 [1173447] smart account 3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb > SELF 0.00000000 Waves

{ "type": 13, "id": "FapjUHz5b8Wq9tbnDNuAXNtY8i1YmbQsXSdsfS5PCKsE", "fee": 1400000, "feeAssetId": null, "timestamp": 1599875200195, "version": 2, "chainId": 84, "sender": "3MwBftUivUk8v47XnSsE4kVY9PH7HwhGdrb", "senderPublicKey": "DSRgh8Vqq8hiEKiYADV17zJViM4LbxicW6dAa6rHydE5", "proofs": [ "9Yn17e9863EAg2dmGPhpCVqoNYUyJSV94vzpofRJUr8Xf95SnDbjq9RFK9HqFF253Wo4fH9s7L9f8EWxgB9cuQC" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAAAAAABAAAAAWkBAAAAEWlzc3VlTGVzc29uVGlja2V0AAAAAgAAAAtpc3N1ZUFtb3VudAAAAARkYXRhBAAAAApjdXJyZW50S2V5AgAAAAthc3NldE51bWJlcgQAAAANY3VycmVudE51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACW5ld051bWJlcgkAAGQAAAACBQAAAA1jdXJyZW50TnVtYmVyAAAAAAAAAAABBAAAAAlhc3NldE5hbWUJAAEsAAAAAgIAAAAFUEFSNy0JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAABBhc3NldERlc2NyaXB0aW9uCQABLAAAAAICAAAAGXNjb3JlR08gbGVzc29uIHRpY2tldCBOby4JAAGkAAAAAQUAAAAJbmV3TnVtYmVyBAAAAAVpc3N1ZQkABEIAAAAFBQAAAAlhc3NldE5hbWUFAAAAEGFzc2V0RGVzY3JpcHRpb24FAAAAC2lzc3VlQW1vdW50AAAAAAAAAAAABgQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUEAAAAB2Fzc2V0SWQJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAHYXNzZXRJZAUAAAAEZGF0YQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3TnVtYmVyCQAETAAAAAIFAAAABWlzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAABWlzc3VlAAAACHF1YW50aXR5BQAAAAJpZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnO8Rup", "height": 1173447, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4n1J6u5kXCiGyYXaw7ZEawPUd3rtZVkY7Y72GSyYQiZK Next: none Diff:
OldNewDifferences
1717 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
1818 let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
1919 let id = calculateAssetId(issue)
20-[StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
20+ let assetId = toBase58String(id)
21+[StringEntry(assetId, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2122 }
2223
2324
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func issueLessonTicket (issueAmount,data) = {
88 let currentKey = "assetNumber"
99 let currentNumber = match getInteger(this, currentKey) {
1010 case a: Int =>
1111 a
1212 case _ =>
1313 0
1414 }
1515 let newNumber = (currentNumber + 1)
1616 let assetName = ("PAR7-" + toString(newNumber))
1717 let assetDescription = ("scoreGO lesson ticket No." + toString(newNumber))
1818 let issue = Issue(assetName, assetDescription, issueAmount, 0, true)
1919 let id = calculateAssetId(issue)
20-[StringEntry(assetName, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
20+ let assetId = toBase58String(id)
21+[StringEntry(assetId, data), IntegerEntry(currentKey, newNumber), issue, ScriptTransfer(i.caller, issue.quantity, id)]
2122 }
2223
2324
2425 @Verifier(tx)
2526 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2627

github/deemru/w8io/169f3d6 
23.50 ms