tx · CvdbTBtM3jcis9K8PD1fTBPuRz7B8xuYVRFkood7yWMj

3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL:  -0.01000000 Waves

2022.04.21 11:05 [2018027] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves

{ "type": 13, "id": "CvdbTBtM3jcis9K8PD1fTBPuRz7B8xuYVRFkood7yWMj", "fee": 1000000, "feeAssetId": null, "timestamp": 1650528379415, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "53KGmadac8J2s58gNVGzGg7PmpccQ9oZXQgY3YLFWwuQDuef1jDurFjRXMibfzzifJowqTSw7PMUAxbnU9qs3NCg" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgASAwoBAQAAAAYBAAAABWFzSW50AAAAAQAAAAV2YWx1ZQQAAAAHJG1hdGNoMAUAAAAFdmFsdWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADaW50BQAAAAckbWF0Y2gwBQAAAANpbnQJAAACAAAAAQIAAAANZXhwZWN0ZWQ6IEludAEAAAARYXNVc2VyQmFsYW5jZURhdGEAAAABAAAABXZhbHVlBAAAAAckbWF0Y2gwBQAAAAV2YWx1ZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAiKEludCwgSW50LCBJbnQsIEludCwgSW50LCBCb29sZWFuKQQAAAABeAUAAAAHJG1hdGNoMAgFAAAAAXgAAAACXzMEAAAAAXQFAAAAByRtYXRjaDAJAAACAAAAAQIAAAAid3JvbmcgdHlwZSwgZXhwZWN0ZWQ6IEludDUmQm9vbGVhbgAAAAAEbWFpbgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM1BBWnY5dGdLMVBYN2RLUjdiNGtjaHE1cWRwVVMzRzVzWVQAAAAAD2Fzc2V0U3RyaW5nVXNkYwIAAAAsNlh0SGpwWGJzOVJSSlAyU3I5R1V5VnF6QUNjYnk5VGtUaEhYbmpWQzVDREoAAAAAC3Jlc2VydmVVc2RjCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXNSUWhwMmNiWEpReEhFVHpkWlFkajJRZlA0YjNNcDZVTAAAAAAHYXNzZXRJZAkAAlkAAAABBQAAAA9hc3NldFN0cmluZ1VzZGMAAAADAAAAAWkBAAAAC3VzZXJCYWxhbmNlAAAAAAkABRQAAAACBQAAAANuaWwAAAAAADWk6QAAAAABaQEAAAAEZ2V0QgAAAAAEAAAAAWEJAQAAAAVhc0ludAAAAAEJAAP8AAAABAUAAAALcmVzZXJ2ZVVzZGMCAAAAC3VzZXJCYWxhbmNlBQAAAANuaWwFAAAAA25pbAkABRQAAAACBQAAAANuaWwJAAGkAAAAAQUAAAABYQAAAAFpAQAAAAZieWVieWUAAAABAAAABG1pbm0EAAAACWF2YWlsYWJsZQkAA/AAAAACBQAAAAtyZXNlcnZlVXNkYwUAAAAHYXNzZXRJZAMJAABmAAAAAgUAAAAEbWlubQUAAAAJYXZhaWxhYmxlCQAAAgAAAAECAAAAATIEAAAACmRlcG9zaXRVc2QJAAPwAAAAAgUAAAALcmVzZXJ2ZVVzZGMFAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAABMQAAAADhwK2G", "height": 2018027, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6nXsW58RUU4qcP1shqtoGucQf8Aq7mk7TyoPs1gQDeme Next: 5PbM7v1xj6HCY2UmPNGd2RUVYyVN9Azhwp5qYkduappV Diff:
OldNewDifferences
5353 if ((n > o))
5454 then throw("2")
5555 else {
56- let p = a(invoke(j, "userBalance", nil, nil))
57- let q = if ((p > o))
58- then p
59- else o
56+ let p = assetBalance(j, k)
6057 throw("1")
6158 }
6259 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = b
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else throw("expected: Int")
1212 }
1313
1414
1515 func e (b) = {
1616 let c = b
1717 if ($isInstanceOf(c, "(Int, Int, Int, Int, Int, Boolean)"))
1818 then {
1919 let f = c
2020 f._3
2121 }
2222 else {
2323 let g = c
2424 throw("wrong type, expected: Int5&Boolean")
2525 }
2626 }
2727
2828
2929 let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
3030
3131 let i = "6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ"
3232
3333 let j = addressFromStringValue("3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL")
3434
3535 let k = fromBase58String(i)
3636
3737 @Callable(l)
3838 func userBalance () = $Tuple2(nil, 900000000)
3939
4040
4141
4242 @Callable(l)
4343 func getB () = {
4444 let m = a(invoke(j, "userBalance", nil, nil))
4545 $Tuple2(nil, toString(m))
4646 }
4747
4848
4949
5050 @Callable(l)
5151 func byebye (n) = {
5252 let o = assetBalance(j, k)
5353 if ((n > o))
5454 then throw("2")
5555 else {
56- let p = a(invoke(j, "userBalance", nil, nil))
57- let q = if ((p > o))
58- then p
59- else o
56+ let p = assetBalance(j, k)
6057 throw("1")
6158 }
6259 }
6360
6461

github/deemru/w8io/026f985 
31.67 ms