tx · BgZQovB51nBXJjt8L98eSjBRvNZAV36oNncF8vF5ACJY
3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS: -0.05000000 Waves
2020.09.23 16:33 [1190015] smart account 3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS > SELF 0.00000000 Waves
{
"type": 13,
"id": "BgZQovB51nBXJjt8L98eSjBRvNZAV36oNncF8vF5ACJY",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1600867979573,
"version": 2,
"chainId": 84,
"sender": "3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS",
"senderPublicKey": "J5BDeG213y3njDCzMMAhZqjRHZHZyVmoGnv3PAFmfGiX",
"proofs": [
"53w1691AMTVz4zi9Z9CyUWdSC6dKvYJ37x2cCzLEb1ra6jzdUBHP69Meg7kgiXjFKLQw6VmquWJ64GMWCNJaPqiZ"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkAQAAACAiRKbniFR9USiuale6D2n6duEOdzftqEerUh9pTZRCRwMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAHc1lAAcJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAF9eEAAAAAAQAAAAFpAQAAAARjYWxsAAAAAAMJAQAAAAtpc1BheW1lbnRPawAAAAEFAAAAAWkFAAAAA25pbAkAAAIAAAABAgAAAAVXcm9uZwAAAAD1miQj",
"height": 1190015,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 27FZZSLntCpoM23LaSPoVv2mo3oGZrJCNFbfbUZTc7Bo
Next: none
Diff:
Old | New | | Differences |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func call () = if (isPaymentOk(i)) |
---|
24 | | - | then throw("OK") |
---|
| 24 | + | then nil |
---|
25 | 25 | | else throw("Wrong") |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func isPaymentOk (i) = { |
---|
5 | 5 | | let acceptableAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg' |
---|
6 | 6 | | if ((size(i.payments) == 0)) |
---|
7 | 7 | | then throw("Payment must be attached") |
---|
8 | 8 | | else { |
---|
9 | 9 | | let p = i.payments[0] |
---|
10 | 10 | | match p.assetId { |
---|
11 | 11 | | case assetId: ByteVector => |
---|
12 | 12 | | if ((assetId == acceptableAssetId)) |
---|
13 | 13 | | then (p.amount >= 500000000) |
---|
14 | 14 | | else false |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | (p.amount >= 100000000) |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func call () = if (isPaymentOk(i)) |
---|
24 | | - | then throw("OK") |
---|
| 24 | + | then nil |
---|
25 | 25 | | else throw("Wrong") |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|