tx · EwpbvEakt2FJ8LGHtfwx5Wk4mn9sBfHyZ8o5m8zRLZ2n

3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9:  -0.00100000 Waves

2022.07.29 10:51 [2160832] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves

{ "type": 13, "id": "EwpbvEakt2FJ8LGHtfwx5Wk4mn9sBfHyZ8o5m8zRLZ2n", "fee": 100000, "feeAssetId": null, "timestamp": 1659081079541, "version": 2, "chainId": 84, "sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9", "senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU", "proofs": [ "4Dsu8w9hcMegb56jEDvM6GJ5XTXMddkHuPqmZ8Cp6KaxQJMnNSwRXvFw6N3jGFRyRN7uNwsjbFfkpMzQwYbMedws" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgASAwoBGBIAAAAABAEAAAAKbGF6eUlzR29vZAAAAAAEAAAAAWECAAAAA0JvYgQAAAABYgQAAAABeAAAAAAAAAAAAQIAAAAFQWxpY2UGAAAAAAJhZAIAAAADQm9iAAAAAAJiZAAAAAAAAAAAAQEAAAAKZ2V0UGF5bWVudAAAAAEAAAABaQMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAnVGhpcyBmdW5jdGlvbiBhY2NlcHRzIFdBVkVTIHRva2VucyBvbmx5CAUAAAADcG10AAAABmFtb3VudAAAAAQAAAABaQEAAAADcGF5AAAAAAQAAAAGYW1vdW50CQEAAAAKZ2V0UGF5bWVudAAAAAEFAAAAAWkJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZhbW91bnQFAAAAA25pbAUAAAAEdW5pdAAAAAFpAQAAAARjYWxjAAAAAAMJAQAAAApsYXp5SXNHb29kAAAAAAkAAAIAAAABAgAAAAIyMQkAAAIAAAABAgAAAA0xMjMxMjMyMTMxMzIxAAAAAWkBAAAAAWYAAAABAAAABGFyZ3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAJmZAAAAAAJAAUUAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAZlbnRyeTICAAAAAzEyMwUAAAADbmlsAAAAAAAAAB5hAAAAAAzElTg=", "height": 2160832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYj2ZGR8nNnWvJu6UPGcAM4Q3DbWhwnpCsePuEXpkiah Next: 8Qbk4mC5ghFZr3w7i8EvyJ9gb3M9d17dVUG6TUMX3pso Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let ad = "Bob"
5-
6-let bd = 1
7-
84 func lazyIsGood () = {
95 let a = "Bob"
106 let b = {
1410 true
1511 }
1612
13+
14+let ad = "Bob"
15+
16+let bd = 1
1717
1818 func getPayment (i) = if ((size(i.payments) == 0))
1919 then throw("Payment must be attached")
3434
3535
3636 @Callable(i)
37-func calc () = throw("1231232131321")
37+func calc () = if (lazyIsGood())
38+ then throw("21")
39+ else throw("1231232131321")
3840
3941
4042
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let ad = "Bob"
5-
6-let bd = 1
7-
84 func lazyIsGood () = {
95 let a = "Bob"
106 let b = {
117 let x = 1
128 "Alice"
139 }
1410 true
1511 }
1612
13+
14+let ad = "Bob"
15+
16+let bd = 1
1717
1818 func getPayment (i) = if ((size(i.payments) == 0))
1919 then throw("Payment must be attached")
2020 else {
2121 let pmt = i.payments[0]
2222 if (isDefined(pmt.assetId))
2323 then throw("This function accepts WAVES tokens only")
2424 else pmt.amount
2525 }
2626
2727
2828 @Callable(i)
2929 func pay () = {
3030 let amount = getPayment(i)
3131 $Tuple2([IntegerEntry(toBase58String(i.caller.bytes), amount)], unit)
3232 }
3333
3434
3535
3636 @Callable(i)
37-func calc () = throw("1231232131321")
37+func calc () = if (lazyIsGood())
38+ then throw("21")
39+ else throw("1231232131321")
3840
3941
4042
4143 @Callable(i)
4244 func f (args) = [StringEntry("entry1", args[0]), StringEntry("entry1", args[1])]
4345
4446
4547
4648 @Callable(i)
4749 func fd () = $Tuple2([StringEntry("entry2", "123")], 7777)
4850
4951

github/deemru/w8io/026f985 
31.21 ms