tx · 8KrwYMp64AsQtGK7GgqfCnknnnVLpz8wjbAQCNwC4wQn
3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -1.00400000 Waves
2021.01.17 23:09 [1357896] smart asset 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00 Szczepan
{
"type": 15,
"id": "8KrwYMp64AsQtGK7GgqfCnknnnVLpz8wjbAQCNwC4wQn",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1610914118933,
"version": 2,
"chainId": 84,
"sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8",
"senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k",
"proofs": [
"5bkeGuLNktrCX7f4pWmboY6oTSNHZw3Wyyecxqb1oWLBm6gwzv9kGJThau5DdVU6Zp8gCdh4zxk1K5VAGd67LL7A"
],
"assetId": "GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo",
"script": "base64:BAQAAAAFYWRyZXMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVT8218SAcQ3h6de+EFkYTuidcqME5sJkekEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAF0AAAABnNlbmRlcgkABCYAAAABAgAAACMzTkN5NHJUOW5vOUNHTHI4OVVybnlIOHM3NVA4SmprU2FwOAYEAAAACGZlZWFzc2V0CQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAVhZHJlcwIAAAAIZmVlYXNzZXQEAAAAA2ZlZQkAAlgAAAABCQEAAAALdmFsdWVPckVsc2UAAAACCAUAAAABdAAAAApmZWVBc3NldElkAQAAAAADCQAAAAAAAAIFAAAAA2ZlZQUAAAAIZmVlYXNzZXQGBAAAAAlrb211bmlrYXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABWFkcmVzAgAAAAlrb211bmlrYXQJAAACAAAAAQUAAAAJa29tdW5pa2F0Br7o2oI=",
"height": 1357896,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Bo45APGFNfmw4i8HutuXxGJBgkBVzZWZpTAWh5kKCqhQ
Next: 2TfawKNSnsVcGseCR2HLpWx6NZqxq7kK6atu9Mu9iY1M
Diff:
Old | New | | Differences |
---|
6 | 6 | | if ((t.sender == addressFromString("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8"))) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else { |
---|
9 | | - | let feeasset = toBytes(getStringValue(adres, "feeasset")) |
---|
10 | | - | if ((t.feeAssetId == feeasset)) |
---|
| 9 | + | let feeasset = getStringValue(adres, "feeasset") |
---|
| 10 | + | let fee = toBase58String(valueOrElse(t.feeAssetId, base58'')) |
---|
| 11 | + | if ((fee == feeasset)) |
---|
11 | 12 | | then true |
---|
12 | 13 | | else { |
---|
13 | | - | let fee = toBase58String(valueOrElse(t.feeAssetId, base58'')) |
---|
14 | 14 | | let komunikat = getStringValue(adres, "komunikat") |
---|
15 | | - | throw(((komunikat + "właśnie zapłaciłeś przy pomocy ") + fee)) |
---|
| 15 | + | throw(komunikat) |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 18 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let adres = Address(base58'3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case t: MassTransferTransaction|TransferTransaction => |
---|
6 | 6 | | if ((t.sender == addressFromString("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8"))) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else { |
---|
9 | | - | let feeasset = toBytes(getStringValue(adres, "feeasset")) |
---|
10 | | - | if ((t.feeAssetId == feeasset)) |
---|
| 9 | + | let feeasset = getStringValue(adres, "feeasset") |
---|
| 10 | + | let fee = toBase58String(valueOrElse(t.feeAssetId, base58'')) |
---|
| 11 | + | if ((fee == feeasset)) |
---|
11 | 12 | | then true |
---|
12 | 13 | | else { |
---|
13 | | - | let fee = toBase58String(valueOrElse(t.feeAssetId, base58'')) |
---|
14 | 14 | | let komunikat = getStringValue(adres, "komunikat") |
---|
15 | | - | throw(((komunikat + "właśnie zapłaciłeś przy pomocy ") + fee)) |
---|
| 15 | + | throw(komunikat) |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | true |
---|
20 | 20 | | } |
---|