tx · 7WY1qii5a9eQQXEuTa1yQ8hQhZMcLb6rZfyub8U4BXY4

3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9:  -0.00200000 Waves

2022.07.29 14:04 [2161024] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves

{ "type": 13, "id": "7WY1qii5a9eQQXEuTa1yQ8hQhZMcLb6rZfyub8U4BXY4", "fee": 200000, "feeAssetId": null, "timestamp": 1659092678239, "version": 2, "chainId": 84, "sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9", "senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU", "proofs": [ "2c8bKYzJ9iJu4GD6TjcRovQ9WwGgbX3EJh3x2qQ9xUhX1Nbgf3snpNUJTJ4RuScBnWHiCMZxFsq8aF9MMjb8cjc9" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACgEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAABQAAAAN2YWwBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAB2lzT3duZXIAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwAAAAAbQ09VUlNfQ0VSVElGSUNBVEVfVElMRV9URVhUAgAAAA9ORlQgQ2VydGlmaWNhdGUAAAAAJ0NPVVJTX0NFUlRJRklDQVRFX0RFU0NSS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FAAAAB2FkZHJlc3MDCQEAAAACIT0AAAACCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQUAAAADa2V5AgAAAAAGBwAAAAEAAAABaQEAAAAIaXNzdWVORlQAAAAABAAAAANrZXkJAAEsAAAAAgIAAAAIaGlzdG9yeV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkAAAAAAAACCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQUAAAADa2V5AgAAAAAJAAUUAAAAAgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACAgAAAAhoaXN0b3J5XwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIGCQAETAAAAAIJAARCAAAABQUAAAAbQ09VUlNfQ0VSVElGSUNBVEVfVElMRV9URVhUCQEAAAAeZ2V0Q291cnNDZXJ0aWZpY2F0ZURlc2NyaXB0aW9uAAAAAQkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEAAAAAAAAAAAAHBQAAAANuaWwFAAAABHVuaXQJAAACAAAAAQUAAAArQ09VUlNfRVJST1JfQ0VSVElGSUNBVEVfQUxSRUFEWV9JU1NVRURfVEVYVAAAAAD3pUJT", "height": 2161024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DLsfAkjiWUtxPCqWLaHeq4xZ7sWhcrtgQLGmzm7j3Bhh Next: 8NKSvYajriK4GDqJkByjx7XCvLyA3w7UoSzrtoZEwmLf Diff:
OldNewDifferences
4343
4444 let m = "A certificate has already been issued at your address"
4545
46-func n (h) = {
46+func n (h) = [BooleanEntry(("history_" + toString(h)), true)]
47+
48+
49+func o (h) = {
4750 let b = ("history_" + toString(h))
4851 if ((a(b) != ""))
49- then throw(m)
50- else [BooleanEntry(b, true)]
52+ then true
53+ else false
5154 }
5255
5356
54-@Callable(o)
55-func issueNFT (h) = $Tuple2([Issue(i, l(h), 1, 0, false)], unit)
57+@Callable(p)
58+func issueNFT () = {
59+ let b = ("history_" + toString(p.caller))
60+ if ((a(b) == ""))
61+ then $Tuple2([BooleanEntry(("history_" + toString(p.caller)), true), Issue(i, l(toString(p.caller)), 1, 0, false)], unit)
62+ else throw(m)
63+ }
5664
5765
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getString(this, b)
77 if ($isInstanceOf(d, "String"))
88 then {
99 let e = d
1010 e
1111 }
1212 else ""
1313 }
1414 c
1515 }
1616
1717
1818 func f (b) = {
1919 let c = {
2020 let d = getInteger(this, b)
2121 if ($isInstanceOf(d, "Int"))
2222 then {
2323 let e = d
2424 e
2525 }
2626 else 0
2727 }
2828 c
2929 }
3030
3131
3232 func g (h) = (h == this)
3333
3434
3535 let i = "NFT Certificate"
3636
3737 let j = "This NFT certificate certifies the completion of the course for a user with a wallet address of "
3838
3939 let k = ". The user has gained in-depth knowledge in understanding the operation of the blockchain, interacting with the exchange, and successfully passed the course exams."
4040
4141 func l (h) = ((j + h) + k)
4242
4343
4444 let m = "A certificate has already been issued at your address"
4545
46-func n (h) = {
46+func n (h) = [BooleanEntry(("history_" + toString(h)), true)]
47+
48+
49+func o (h) = {
4750 let b = ("history_" + toString(h))
4851 if ((a(b) != ""))
49- then throw(m)
50- else [BooleanEntry(b, true)]
52+ then true
53+ else false
5154 }
5255
5356
54-@Callable(o)
55-func issueNFT (h) = $Tuple2([Issue(i, l(h), 1, 0, false)], unit)
57+@Callable(p)
58+func issueNFT () = {
59+ let b = ("history_" + toString(p.caller))
60+ if ((a(b) == ""))
61+ then $Tuple2([BooleanEntry(("history_" + toString(p.caller)), true), Issue(i, l(toString(p.caller)), 1, 0, false)], unit)
62+ else throw(m)
63+ }
5664
5765

github/deemru/w8io/026f985 
23.49 ms