tx · CBcRGjcPduaEGCP5WJqzDqhq7fckw9FgydVjUrEhpcQ2
3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves
2023.02.14 14:07 [2449210] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{
"type": 13,
"id": "CBcRGjcPduaEGCP5WJqzDqhq7fckw9FgydVjUrEhpcQ2",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1676373011017,
"version": 2,
"chainId": 84,
"sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F",
"senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R",
"proofs": [
"NFYqstY5XXxA3xjR4Ya3wZjACxS8dpxaan8CAtFu6d9HtWKRfKXTsnncidChPyDVtwsmPULAzkAE5bvVb6vMqQ4"
],
"script": "base64:BgIPCAISBAoCCAgSBQoDCAEIAgAFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AAVXQVZFUwEAAgFpAQ10cmFuc2ZlclRva2VuAg1yZWNlcGllbnRBZGRyB21lc3NhZ2UEBmNhbGxlcggIBQFpBmNhbGxlcgVieXRlcwQHcmVjaXZlcgkA2QQBBQ1yZWNlcGllbnRBZGRyBAZhbW91bnQICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50AwkAAAIICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAUFdGVhbXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUFdGVhbXMFA25pbAUDbmlsAWkBC3NlbmRSZXF1ZXN0Aw1yZWNlcGllbnRBZGRyBmFtb3VudApBdHRhY2htZW50BAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB21lc3NhZ2UJAJsDAQUKQXR0YWNobWVudAQHcmVjaXZlcgkA2QQBBQ1yZWNlcGllbnRBZGRyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIAAAUHbWVzc2FnZQUDbmlsAHq+JW8=",
"height": 2449210,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8xLa6JGkxcjPD6rPjBuM3HN1JncvpQe3yRMTWteQ6Qbg
Next: 3bFQpyK6D7kzhR8ZUQ4y37GH98gyZs5bgEM6sHUZ2jf6
Diff:
Old | New | | Differences |
---|
20 | 20 | | @Callable(c) |
---|
21 | 21 | | func sendRequest (d,h,i) = { |
---|
22 | 22 | | let f = c.caller.bytes |
---|
| 23 | + | let e = toBytes(i) |
---|
23 | 24 | | let g = fromBase58String(d) |
---|
24 | | - | [StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), 0, i)] |
---|
| 25 | + | [StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), 0, e)] |
---|
25 | 26 | | } |
---|
26 | 27 | | |
---|
27 | 28 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func transferToken (d,e) = { |
---|
10 | 10 | | let f = c.caller.bytes |
---|
11 | 11 | | let g = fromBase58String(d) |
---|
12 | 12 | | let h = c.payments[0].amount |
---|
13 | 13 | | if ((c.payments[0].assetId == a)) |
---|
14 | 14 | | then [IntegerEntry((toBase58String(f) + "_transfer"), h), StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), h, a)] |
---|
15 | 15 | | else nil |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(c) |
---|
21 | 21 | | func sendRequest (d,h,i) = { |
---|
22 | 22 | | let f = c.caller.bytes |
---|
| 23 | + | let e = toBytes(i) |
---|
23 | 24 | | let g = fromBase58String(d) |
---|
24 | | - | [StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), 0, i)] |
---|
| 25 | + | [StringEntry((toBase58String(f) + "_transfer_to"), d), ScriptTransfer(Address(g), 0, e)] |
---|
25 | 26 | | } |
---|
26 | 27 | | |
---|
27 | 28 | | |
---|