tx · 9wDCCbs1kes3bu1iiV7S9gKk8Qz3fiEJN9hi6YAZZger

3N8vbCi8fbBq4cY8L3AWqQeq7VJR5FxvR7J:  -0.01000000 Waves

2021.09.25 21:35 [1718848] smart account 3N8vbCi8fbBq4cY8L3AWqQeq7VJR5FxvR7J > SELF 0.00000000 Waves

{ "type": 13, "id": "9wDCCbs1kes3bu1iiV7S9gKk8Qz3fiEJN9hi6YAZZger", "fee": 1000000, "feeAssetId": null, "timestamp": 1632595028549, "version": 2, "chainId": 84, "sender": "3N8vbCi8fbBq4cY8L3AWqQeq7VJR5FxvR7J", "senderPublicKey": "EkHiMGjZnobhmra42ocG6pxLtFnuq8oPJw2cR7hVSTM1", "proofs": [ "dAwwSCkCczGJs863mSF9mRFEcLcFQwSs9moBAwtWqWkY9q1ix8kQDkHwNGFeA3n73JiRfX9SdSeARVnJcirYbGN" ], "script": "base64:AAIFAAAAAAAAAIEIAhIAGhAKAmExEgpyYW5kb21pemVyGgkKAmEyEgNpbnYaDgoCYTMSCGxhc3RQbGF5Gg0KAmE0EgckbWF0Y2gwGgcKAmE1EgFzGgoKAmE2EgRyYW5kGg4KAmE3EghyYW5kaGFzaBoLCgJhOBIFYXNzZXQaDQoCYTkSB2Fzc2V0SWQAAAABAQAAAAJhMQAAAAEAAAACYTIEAAAAAmEzBAAAAAJhNAkABBwAAAACBQAAAAR0aGlzAgAAAAhsYXN0UGxheQMJAAABAAAAAgUAAAACYTQCAAAACkJ5dGVWZWN0b3IEAAAAAmE1BQAAAAJhNAUAAAACYTUDCQAAAQAAAAIFAAAAAmE0AgAAAARVbml0AQAAAAxXYXZlc0xvdHRvVjIJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAAAmE2CQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgUAAAACYTMIBQAAAAJhMgAAAA10cmFuc2FjdGlvbklkCAUAAAACYTIAAAAPY2FsbGVyUHVibGljS2V5CAUAAAAJbGFzdEJsb2NrAAAAE2dlbmVyYXRpb25TaWduYXR1cmUJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQJAAH3AAAAAQUAAAACYTYAAAABAAAAAmEyAQAAAAVsb3R0bwAAAAADAwkAAAAAAAACCQABkAAAAAEIBQAAAAJhMgAAAAhwYXltZW50cwAAAAAAAAAAAAYJAQAAAAlpc0RlZmluZWQAAAABCQABkQAAAAIIBQAAAAJhMgAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAAB9TaG91bGQgYmUgd2l0aCBQYXltZW50IGluIFdhdmVzBAAAAAJhNwkBAAAAAmExAAAAAQUAAAACYTIDCQAAZgAAAAIAAAAAAAAAAfQJAABqAAAAAgkABLEAAAABBQAAAAJhNwAAAAAAAAAD6AQAAAACYTgJAARDAAAABwIAAAAMVW5pcXVlIEFzc2V0AgAAAAhUZXN0IE5GVAAAAAAAAAAAAQAAAAAAAAAAAAcFAAAABHVuaXQFAAAABmhlaWdodAQAAAACYTkJAAQ4AAAAAQUAAAACYTgJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAAIbGFzdFBsYXkFAAAAAmE3CQAETAAAAAIFAAAAAmE4CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMgAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAAmE5BQAAAANuaWwJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAAIbGFzdFBsYXkFAAAAAmE3BQAAAANuaWwAAAAA8gtbSg==", "height": 1718848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GgFxgiMzCKujQfjVKzady9R5uk1gag4PDtYNb1XmTnsm Next: 6qdn8hyP3gFUsGczQrQ6E7BsXefPSMeXGdDmoyQQoNUE Diff:
OldNewDifferences
1919
2020
2121 @Callable(b)
22-func lotto () = if (if ((size(b.payments) != 1))
22+func lotto () = if (if ((size(b.payments) == 0))
2323 then true
2424 else isDefined(b.payments[0]))
2525 then throw("Should be with Payment in Waves")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getBinary(this, "lastPlay")
77 if ($isInstanceOf(d, "ByteVector"))
88 then {
99 let e = d
1010 e
1111 }
1212 else if ($isInstanceOf(d, "Unit"))
1313 then base58'2ee4oFDYriWJ9EMeR'
1414 else throw("Match error")
1515 }
1616 let f = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
1717 sha256(f)
1818 }
1919
2020
2121 @Callable(b)
22-func lotto () = if (if ((size(b.payments) != 1))
22+func lotto () = if (if ((size(b.payments) == 0))
2323 then true
2424 else isDefined(b.payments[0]))
2525 then throw("Should be with Payment in Waves")
2626 else {
2727 let g = a(b)
2828 if ((500 > (toInt(g) % 1000)))
2929 then {
3030 let h = Issue("Unique Asset", "Test NFT", 1, 0, false, unit, height)
3131 let i = calculateAssetId(h)
3232 [BinaryEntry("lastPlay", g), h, ScriptTransfer(b.caller, 1, i)]
3333 }
3434 else [BinaryEntry("lastPlay", g)]
3535 }
3636
3737

github/deemru/w8io/026f985 
26.18 ms