tx · GYrb4XkKFrrFJijYLb78HrHdHm8WhyFhVFVEfEF3ypdC
3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk: -0.01000000 Waves
2021.05.25 20:30 [1541486] smart account 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk > SELF 0.00000000 Waves
{
"type": 13,
"id": "GYrb4XkKFrrFJijYLb78HrHdHm8WhyFhVFVEfEF3ypdC",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1621963858392,
"version": 2,
"chainId": 84,
"sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk",
"senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62",
"proofs": [
"5QrW8xoXfeZe51UzfBy8V4aPdCiAhQv4625QmQGLwYR5DEuBfvWwCykHz8iJRRNe5xBCmfojuFS2x3ncAtZECSw4"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABXVuaXRfCQABpAAAAAEFAAAABnVuaXRpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAEAAAABGNvc3QEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAVjb3N0XwUAAAALdW5pdEFzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAEY29zdAkAAAIAAAABAgAAABhXcm9uZyBzZXJ2aWNlIGZlZSBhbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABCQACWQAAAAEFAAAAC3VuaXRBc3NldElkBQAAAANuaWwAAAAAKREBYA==",
"height": 1541486,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8sVbaVvoKfjAdttfxp2erpYc6vp1gichDJ1EBryHUXQ8
Next: DFakGMUW5VgEc5mwEo4c47UbTe6hv5by9gU7cy59t11Q
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
|
23 | 23 | | } |
---|
24 | 24 | | else 0 |
---|
25 | 25 | | } |
---|
26 | | - | let g = extract(a.payment) |
---|
| 26 | + | let g = value(a.payments[0]) |
---|
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, fromBase58String(c))]) |
---|
| 31 | + | else [ScriptTransfer(a.caller, 1, fromBase58String(c))] |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
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 | | - | let g = extract(a.payment) |
---|
| 26 | + | let g = value(a.payments[0]) |
---|
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, fromBase58String(c))]) |
---|
| 31 | + | else [ScriptTransfer(a.caller, 1, fromBase58String(c))] |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|