tx · 5RsNiREpFGg9t2ckpJeNgDPE8Qj9tGTEPm6uvJgNMsVi
3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW: -0.01400000 Waves
2021.12.05 13:32 [1820850] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves
{
"type": 13,
"id": "5RsNiREpFGg9t2ckpJeNgDPE8Qj9tGTEPm6uvJgNMsVi",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1638700330737,
"version": 2,
"chainId": 84,
"sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW",
"senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv",
"proofs": [
"4dEfdG3wXqmc2STXxHvPCC8vKZ7nFpAKbGSvzH8xVTWPNF1QVkq2ocSzWC448cuenrXo3rt4T3Dmx7KxSDq4ojAp"
],
"script": "base64:AAIEAAAAAAAAAA0IAhIDCgEIEgQKAgEIAAAAAAAAAAIAAAABaQEAAAAGbWludG1lAAAAAQAAAARpbmZvBAAAAAdjb3VudGVyBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAkAAGQAAAACBQAAAAFhAAAAAAAAAAABAAAAAAAAAAAABAAAAAJzdAkAAaQAAAABBQAAAAdjb3VudGVyBAAAAARuYW1lAgAAAApNRFNULU5GVCAjBAAAAAVmbmFtZQkAASwAAAACBQAAAARuYW1lBQAAAAJzdAQAAAAFaXNzdWUJAARCAAAABQUAAAAFZm5hbWUFAAAABGluZm8AAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAJpZAkABDgAAAABBQAAAAVpc3N1ZQkABEwAAAACBQAAAAVpc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAVpc3N1ZQAAAAhxdWFudGl0eQUAAAACaWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB2NvdW50ZXIFAAAAB2NvdW50ZXIFAAAAA25pbAAAAAFpAQAAAAZidXluZnQAAAACAAAAA2NudAAAAAZpZG5mdHgEAAAABWZuYW1lAgAAAA1NRFNULU5GVC1DT1BZBAAAAARpbmZvAgAAAApraWtpIGJpa2l0BAAAAAFjCQABmwAAAAEFAAAABmlkbmZ0eAQAAAABZQkAAlgAAAABBQAAAAFjBAAAAAFkCQABmwAAAAEFAAAAAWUEAAAABWlkbmZ0BQAAAAFkBAAAAAF4BAAAAAckbWF0Y2gwCQAD7AAAAAEFAAAABWlkbmZ0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVBc3NldAQAAAAFYXNzZXQFAAAAByRtYXRjaDAIBQAAAAVhc3NldAAAAAtkZXNjcmlwdGlvbgkAAAIAAAABAgAAABBDYW4ndCBmaW5kIGFzc2V0BAAAAAVpc3N1ZQkABEIAAAAFBQAAAAVmbmFtZQUAAAAEaW5mbwAAAAAAAAAAAQAAAAAAAAAAAAcEAAAAAmlkCQAEOAAAAAEFAAAABWlzc3VlCQAETAAAAAIJAAACAAAAAQkAASwAAAACAgAAAAd0aGUgeCA6BQAAAAF4BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXOYFv4=",
"height": 1820850,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CsdyFGGBCwHauNEe2fvrNzNz9K9BGaAXbK2DX2Ev5pUw
Next: 22DKm56Ay9wgr9WSw6i9ek3LzGxj7crL8DbhzPqE9wf6
Diff:
Old | New | | Differences |
---|
25 | 25 | | func buynft (cnt,idnftx) = { |
---|
26 | 26 | | let fname = "MDST-NFT-COPY" |
---|
27 | 27 | | let info = "kiki bikit" |
---|
28 | | - | let d = toBytes(idnftx) |
---|
| 28 | + | let c = toBytes(idnftx) |
---|
| 29 | + | let e = toBase58String(c) |
---|
| 30 | + | let d = toBytes(e) |
---|
29 | 31 | | let idnft = d |
---|
30 | 32 | | let x = match assetInfo(idnft) { |
---|
31 | 33 | | case asset: Asset => |
---|
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 mintme (info) = { |
---|
8 | 8 | | let counter = match getInteger(this, "counter") { |
---|
9 | 9 | | case a: Int => |
---|
10 | 10 | | (a + 1) |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | 0 |
---|
13 | 13 | | } |
---|
14 | 14 | | let st = toString(counter) |
---|
15 | 15 | | let name = "MDST-NFT #" |
---|
16 | 16 | | let fname = (name + st) |
---|
17 | 17 | | let issue = Issue(fname, info, 1, 0, false) |
---|
18 | 18 | | let id = calculateAssetId(issue) |
---|
19 | 19 | | [issue, ScriptTransfer(i.caller, issue.quantity, id), IntegerEntry("counter", counter)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(i) |
---|
25 | 25 | | func buynft (cnt,idnftx) = { |
---|
26 | 26 | | let fname = "MDST-NFT-COPY" |
---|
27 | 27 | | let info = "kiki bikit" |
---|
28 | | - | let d = toBytes(idnftx) |
---|
| 28 | + | let c = toBytes(idnftx) |
---|
| 29 | + | let e = toBase58String(c) |
---|
| 30 | + | let d = toBytes(e) |
---|
29 | 31 | | let idnft = d |
---|
30 | 32 | | let x = match assetInfo(idnft) { |
---|
31 | 33 | | case asset: Asset => |
---|
32 | 34 | | asset.description |
---|
33 | 35 | | case _ => |
---|
34 | 36 | | throw("Can't find asset") |
---|
35 | 37 | | } |
---|
36 | 38 | | let issue = Issue(fname, info, 1, 0, false) |
---|
37 | 39 | | let id = calculateAssetId(issue) |
---|
38 | 40 | | [throw(("the x :" + x))] |
---|
39 | 41 | | } |
---|
40 | 42 | | |
---|
41 | 43 | | |
---|
42 | 44 | | @Verifier(tx) |
---|
43 | 45 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
44 | 46 | | |
---|