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(i) | |
21 | 21 | func sendRequest (recepientAddr,amount,Attachment) = { | |
22 | 22 | let caller = i.caller.bytes | |
23 | + | let message = toBytes(Attachment) | |
23 | 24 | let reciver = fromBase58String(recepientAddr) | |
24 | - | [StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), 0, | |
25 | + | [StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), 0, message)] | |
25 | 26 | } | |
26 | 27 | ||
27 | 28 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
5 | 5 | ||
6 | 6 | let WAVES = base58'' | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func transferToken (recepientAddr,message) = { | |
10 | 10 | let caller = i.caller.bytes | |
11 | 11 | let reciver = fromBase58String(recepientAddr) | |
12 | 12 | let amount = i.payments[0].amount | |
13 | 13 | if ((i.payments[0].assetId == teams)) | |
14 | 14 | then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)] | |
15 | 15 | else nil | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func sendRequest (recepientAddr,amount,Attachment) = { | |
22 | 22 | let caller = i.caller.bytes | |
23 | + | let message = toBytes(Attachment) | |
23 | 24 | let reciver = fromBase58String(recepientAddr) | |
24 | - | [StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), 0, | |
25 | + | [StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), 0, message)] | |
25 | 26 | } | |
26 | 27 | ||
27 | 28 |
github/deemru/w8io/169f3d6 28.88 ms ◑