tx · Gc5X3e4aCu9t3QGD2f87yh5MdUS1Wmf1BQdEaXdL4qz2
3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e: -0.01400000 Waves
2021.04.08 08:55 [1473074] smart account 3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e > SELF 0.00000000 Waves
{
"type": 13,
"id": "Gc5X3e4aCu9t3QGD2f87yh5MdUS1Wmf1BQdEaXdL4qz2",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1617861370344,
"version": 2,
"chainId": 84,
"sender": "3MvTyKB3CtqXBarzqMA6NKdiv9skDfbdw3e",
"senderPublicKey": "7oL4rP9peuMFSYMivtqPQgYnHWDDNnrqYdaMt8qnQbjt",
"proofs": [
"3AwgDdKWU26r7PCkguDXsuRehBuMcixseACrwrgXPZqdAXHYPe7gqhqfGig4DEFWRHrz6AnpPLEbRagigFYSJq1k"
],
"script": "base64:AAIEAAAAAAAAAA8IAhIFCgMICAgSBAoCCAgAAAAAAAAAAgAAAAFpAQAAAAhpc3N1ZU5mdAAAAAMAAAAFYnJhbmQAAAAEbmFtZQAAAARqc29uBAAAAANuZnQJAARCAAAABQIAAAANR09MRiBHRUFSIE5GVAkAASwAAAACCQABLAAAAAIFAAAABWJyYW5kAgAAAAMgLyAFAAAABG5hbWUAAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAVuZnRJZAkABDgAAAABBQAAAANuZnQEAAAAC25mdElkU3RyaW5nCQACWAAAAAEFAAAABW5mdElkCQAETAAAAAIFAAAAA25mdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAtuZnRJZFN0cmluZwUAAAAEanNvbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAABW5mdElkBQAAAANuaWwAAAABaQEAAAAJdXBkYXRlTmZ0AAAAAgAAAAVuZnRpZAAAAARqc29uBAAAAAVuZnRJZAkAAlkAAAABBQAAAAVuZnRpZAQAAAAHYmFsYW5jZQkAA/AAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABW5mdElkAwkAAAAAAAACBQAAAAdiYWxhbmNlAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdGlkBQAAAARqc29uBQAAAANuaWwJAAACAAAAAQIAAAAhWW91IGFyZSBub3QgYXV0aG9yaXplZCB0byB1cGRhdGUuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmmednw",
"height": 1473074,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AnwceiWKGe4869eDQT4d9goQyiAdtbXzpsuHGLsHS38t
Next: DQJUQaexrWChU19zfvJyFqz7cZnnmrt2RgzxWcaiAL1K
Diff:
Old | New | | Differences |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func updateNft (nftid,json) = { |
---|
18 | | - | let nftId = toBytes(nftid) |
---|
| 18 | + | let nftId = fromBase58String(nftid) |
---|
19 | 19 | | let balance = assetBalance(i.caller, nftId) |
---|
20 | 20 | | if ((balance == 1)) |
---|
21 | 21 | | then [StringEntry(nftid, json)] |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func issueNft (brand,name,json) = { |
---|
8 | 8 | | let nft = Issue("GOLF GEAR NFT", ((brand + " / ") + name), 1, 0, false) |
---|
9 | 9 | | let nftId = calculateAssetId(nft) |
---|
10 | 10 | | let nftIdString = toBase58String(nftId) |
---|
11 | 11 | | [nft, StringEntry(nftIdString, json), ScriptTransfer(i.caller, 1, nftId)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func updateNft (nftid,json) = { |
---|
18 | | - | let nftId = toBytes(nftid) |
---|
| 18 | + | let nftId = fromBase58String(nftid) |
---|
19 | 19 | | let balance = assetBalance(i.caller, nftId) |
---|
20 | 20 | | if ((balance == 1)) |
---|
21 | 21 | | then [StringEntry(nftid, json)] |
---|
22 | 22 | | else throw("You are not authorized to update.") |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Verifier(tx) |
---|
27 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
28 | 28 | | |
---|