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:
OldNewDifferences
2121
2222 @Callable(i)
2323 func call () = if (isPaymentOk(i))
24- then throw("OK")
24+ then nil
2525 else throw("Wrong")
2626
2727
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func isPaymentOk (i) = {
55 let acceptableAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg'
66 if ((size(i.payments) == 0))
77 then throw("Payment must be attached")
88 else {
99 let p = i.payments[0]
1010 match p.assetId {
1111 case assetId: ByteVector =>
1212 if ((assetId == acceptableAssetId))
1313 then (p.amount >= 500000000)
1414 else false
1515 case _ =>
1616 (p.amount >= 100000000)
1717 }
1818 }
1919 }
2020
2121
2222 @Callable(i)
2323 func call () = if (isPaymentOk(i))
24- then throw("OK")
24+ then nil
2525 else throw("Wrong")
2626
2727

github/deemru/w8io/169f3d6 
19.90 ms