tx · 77mzXZTLjD5bqoHj7FjSdQBmJ4qPT7p7iaMwT5vikZ9g
3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk: -0.14000000 Waves
2021.02.04 19:26 [1383670] smart account 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk > SELF 0.00000000 Waves
{
"type": 13,
"id": "77mzXZTLjD5bqoHj7FjSdQBmJ4qPT7p7iaMwT5vikZ9g",
"fee": 14000000,
"feeAssetId": null,
"timestamp": 1612456010155,
"version": 2,
"chainId": 84,
"sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk",
"senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62",
"proofs": [
"2TtGCc5HgAjR9XsJxqc3kSmnZyj389VL4cBDXULdTSjUaHDukDQpgtCeL3kGJiBATqqeV4aNMbybShjQFb2vDRpj"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABHVuaXQJAAGkAAAAAQUAAAAGdW5pdGlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAEY29zdAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABWNvc3RfBQAAAAt1bml0QXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABGNvc3QJAAACAAAAAQIAAAAYV3Jvbmcgc2VydmljZSBmZWUgYW1vdW50CQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAEdW5pdAUAAAADbmlsAAAAAJdM5w8=",
"height": 1383670,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2KAELd8c8ScHWQ85kVjx1g9M6JtxvoaiMK7QKG5jgAsX
Next: 4tYTW9tzLBDmEczkwXP82ajHePxBst5Jg9A97xVYcfY1
Diff:
Old | New | | Differences |
---|
28 | 28 | | then throw("works with waves only") |
---|
29 | 29 | | else if ((g.amount != f)) |
---|
30 | 30 | | then throw("Wrong service fee amount") |
---|
31 | | - | else TransferSet([ScriptTransfer(a.caller, 1, toBytes(c))]) |
---|
| 31 | + | else TransferSet([ScriptTransfer(a.caller, 1, unit)]) |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func getUnit (b) = { |
---|
8 | 8 | | let c = { |
---|
9 | 9 | | let d = getString(this, ("unit" + toString(b))) |
---|
10 | 10 | | if ($isInstanceOf(d, "String")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | 13 | | e |
---|
14 | 14 | | } |
---|
15 | 15 | | else "" |
---|
16 | 16 | | } |
---|
17 | 17 | | let f = { |
---|
18 | 18 | | let d = getInteger(this, ("cost_" + c)) |
---|
19 | 19 | | if ($isInstanceOf(d, "Int")) |
---|
20 | 20 | | then { |
---|
21 | 21 | | let e = d |
---|
22 | 22 | | e |
---|
23 | 23 | | } |
---|
24 | 24 | | else 0 |
---|
25 | 25 | | } |
---|
26 | 26 | | let g = extract(a.payment) |
---|
27 | 27 | | if (isDefined(g.assetId)) |
---|
28 | 28 | | then throw("works with waves only") |
---|
29 | 29 | | else if ((g.amount != f)) |
---|
30 | 30 | | then throw("Wrong service fee amount") |
---|
31 | | - | else TransferSet([ScriptTransfer(a.caller, 1, toBytes(c))]) |
---|
| 31 | + | else TransferSet([ScriptTransfer(a.caller, 1, unit)]) |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|