tx · DQJUQaexrWChU19zfvJyFqz7cZnnmrt2RgzxWcaiAL1K

3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e:  -0.01400000 Waves

2021.04.09 19:44 [1475159] smart account 3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e > SELF 0.00000000 Waves

{ "type": 13, "id": "DQJUQaexrWChU19zfvJyFqz7cZnnmrt2RgzxWcaiAL1K", "fee": 1400000, "feeAssetId": null, "timestamp": 1617986751492, "version": 2, "chainId": 84, "sender": "3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e", "senderPublicKey": "7oL4rP9peuMFSYMivtqPQgYnHWDDNnrqYdaMt8qnQbjt", "proofs": [ "2ZKChWeZ4LHq6iPCpUC3HnTpYq1o9Z5mCJgF6amXASrX1VweP1B8otAtZSnGSM2JeRS9ASpX6MRCx7H18jTsE7FV" ], "script": "base64:AAIEAAAAAAAAABEIAhIGCgQICAgIEgUKAwgICAAAAAAAAAACAAAAAWkBAAAACGlzc3VlTmZ0AAAABAAAAARjb2RlAAAABWJyYW5kAAAABG5hbWUAAAAEanNvbgQAAAADbmZ0CQAEQgAAAAUCAAAADUdPTEYgR0VBUiBORlQJAAEsAAAAAgkAASwAAAACBQAAAAVicmFuZAIAAAADIC8gBQAAAARuYW1lAAAAAAAAAAABAAAAAAAAAAAABwQAAAAFbmZ0SWQJAAQ4AAAAAQUAAAADbmZ0BAAAAAtuZnRJZFN0cmluZwkAAlgAAAABBQAAAAVuZnRJZAkABEwAAAACBQAAAANuZnQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAALbmZ0SWRTdHJpbmcFAAAABGpzb24JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVuZnRJZAUAAAADbmlsAAAAAWkBAAAACXVwZGF0ZU5mdAAAAAMAAAAEY29kZQAAAAVuZnRpZAAAAARqc29uBAAAAAVuZnRJZAkAAlkAAAABBQAAAAVuZnRpZAQAAAAHYmFsYW5jZQkAA/AAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABW5mdElkAwkAAAAAAAACBQAAAAdiYWxhbmNlAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdGlkBQAAAARqc29uBQAAAANuaWwJAAACAAAAAQIAAAAhWW91IGFyZSBub3QgYXV0aG9yaXplZCB0byB1cGRhdGUuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmLIoWF", "height": 1475159, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gc5X3e4aCu9t3QGD2f87yh5MdUS1Wmf1BQdEaXdL4qz2 Next: none Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func issueNft (b,c,d) = {
8- let e = Issue("GOLF GEAR NFT", ((b + " / ") + c), 1, 0, false)
9- let f = calculateAssetId(e)
10- let g = toBase58String(f)
11-[e, StringEntry(g, d), ScriptTransfer(a.caller, 1, f)]
7+func issueNft (b,c,d,e) = {
8+ let f = Issue("GOLF GEAR NFT", ((c + " / ") + d), 1, 0, false)
9+ let g = calculateAssetId(f)
10+ let h = toBase58String(g)
11+[f, StringEntry(h, e), ScriptTransfer(a.caller, 1, g)]
1212 }
1313
1414
1515
1616 @Callable(a)
17-func updateNft (h,d) = {
18- let f = fromBase58String(h)
19- let i = assetBalance(a.caller, f)
20- if ((i == 1))
21- then [StringEntry(h, d)]
17+func updateNft (b,i,e) = {
18+ let g = fromBase58String(i)
19+ let j = assetBalance(a.caller, g)
20+ if ((j == 1))
21+ then [StringEntry(i, e)]
2222 else throw("You are not authorized to update.")
2323 }
2424
2525
26-@Verifier(j)
27-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
26+@Verifier(k)
27+func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
2828
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func issueNft (b,c,d) = {
8- let e = Issue("GOLF GEAR NFT", ((b + " / ") + c), 1, 0, false)
9- let f = calculateAssetId(e)
10- let g = toBase58String(f)
11-[e, StringEntry(g, d), ScriptTransfer(a.caller, 1, f)]
7+func issueNft (b,c,d,e) = {
8+ let f = Issue("GOLF GEAR NFT", ((c + " / ") + d), 1, 0, false)
9+ let g = calculateAssetId(f)
10+ let h = toBase58String(g)
11+[f, StringEntry(h, e), ScriptTransfer(a.caller, 1, g)]
1212 }
1313
1414
1515
1616 @Callable(a)
17-func updateNft (h,d) = {
18- let f = fromBase58String(h)
19- let i = assetBalance(a.caller, f)
20- if ((i == 1))
21- then [StringEntry(h, d)]
17+func updateNft (b,i,e) = {
18+ let g = fromBase58String(i)
19+ let j = assetBalance(a.caller, g)
20+ if ((j == 1))
21+ then [StringEntry(i, e)]
2222 else throw("You are not authorized to update.")
2323 }
2424
2525
26-@Verifier(j)
27-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
26+@Verifier(k)
27+func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
2828

github/deemru/w8io/169f3d6 
42.95 ms