tx · G3szmSP2GKy4LafXHsxWWPjvbW1ag8Byt1HxZYR3yPfz
3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F: -0.01000000 Waves
2023.02.13 14:50 [2447805] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves
{
"type": 13,
"id": "G3szmSP2GKy4LafXHsxWWPjvbW1ag8Byt1HxZYR3yPfz",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1676289141925,
"version": 2,
"chainId": 84,
"sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F",
"senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R",
"proofs": [
"2P3Vqqj1nNNE7hxpjqZUqTMNRCPuNdFVsQsbNjzVQHrf6ALhtFX46jE8VtDSL6xuCpiYPUWuV8LTVusnvCExyGQd"
],
"script": "base64:BgIICAISBAoCCAgAAQFpARJtYW51YWxGdW5kVHJhbnNmZXICDXJlY2VwaWVudEFkZHIHbWVzc2FnZQQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBApBdHRhY2htZW50CQCbAwEFB21lc3NhZ2UEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCQCkAwEFBmFtb3VudAIACQACAQIgUGF5bWVudCBpcyBub3QgYXR0YWNoZWQgb3IgZW1wdHkJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUEdW5pdAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIAAQUKQXR0YWNobWVudAUDbmlsAH4Ud7U=",
"height": 2447805,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AwdGxBTwFUoYWLY6yayYCmpQQTcH3Bcb9LED9HXFuuw9
Next: 5ovoy8beqsZucP2b4pnSY3DaSjmpF7CnoLFrNuGDQ8zT
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func manualFundTransfer (recepientAddr,Attachment) = { |
---|
| 7 | + | func manualFundTransfer (recepientAddr,message) = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
| 9 | + | let Attachment = toBytes(message) |
---|
9 | 10 | | let reciver = fromBase58String(recepientAddr) |
---|
10 | 11 | | let amount = i.payments[0].amount |
---|
11 | 12 | | if ((toString(amount) == "")) |
---|
12 | 13 | | then throw("Payment is not attached or empty") |
---|
13 | | - | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, Attachment)] |
---|
| 14 | + | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit), ScriptTransfer(Address(reciver), 1, Attachment)] |
---|
14 | 15 | | } |
---|
15 | 16 | | |
---|
16 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func manualFundTransfer (recepientAddr,Attachment) = { |
---|
| 7 | + | func manualFundTransfer (recepientAddr,message) = { |
---|
8 | 8 | | let caller = i.caller.bytes |
---|
| 9 | + | let Attachment = toBytes(message) |
---|
9 | 10 | | let reciver = fromBase58String(recepientAddr) |
---|
10 | 11 | | let amount = i.payments[0].amount |
---|
11 | 12 | | if ((toString(amount) == "")) |
---|
12 | 13 | | then throw("Payment is not attached or empty") |
---|
13 | | - | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, Attachment)] |
---|
| 14 | + | else [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, unit), ScriptTransfer(Address(reciver), 1, Attachment)] |
---|
14 | 15 | | } |
---|
15 | 16 | | |
---|
16 | 17 | | |
---|