tx · 8uoey7f4qrhoorfPJaNKvh4HGrZUKExBcKhTNAk6aCgx

3Ms8akLnoxa9mwSeWGkMhpowR5zeLQZ9cPT:  -0.01400000 Waves

2022.09.10 14:48 [2222977] smart account 3Ms8akLnoxa9mwSeWGkMhpowR5zeLQZ9cPT > SELF 0.00000000 Waves

{ "type": 13, "id": "8uoey7f4qrhoorfPJaNKvh4HGrZUKExBcKhTNAk6aCgx", "fee": 1400000, "feeAssetId": null, "timestamp": 1662810520433, "version": 2, "chainId": 84, "sender": "3Ms8akLnoxa9mwSeWGkMhpowR5zeLQZ9cPT", "senderPublicKey": "2QxxRX4t27XWvcwhfJbvgoppWbH1rYGfYbFdDtF53Abv", "proofs": [ "3EhN9VQkDF7fyhZqnS4ofFnebRRen2qaM6YPjs5zyeMTRhxCFnX7WB876xEySnAHDk4vDfHTtdFbmGQYab7ceoNQ" ], "script": "base64:BgIHCAISAwoBCAEABW93bmVyASAU/1CPvprc+ikrAt+zMDQpSV8vt9KA6ZibikQnPp+iPQEBaQEEdm90ZQEBdgQMZXhpc3RpbmdWb3RlCQCdCAIFBHRoaXMJANgEAQgFAWkPY2FsbGVyUHVibGljS2V5AwkBCWlzRGVmaW5lZAEFDGV4aXN0aW5nVm90ZQkAAgECDUFscmVhZHkgdm90ZWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkA2AQBCAUBaQ9jYWxsZXJQdWJsaWNLZXkFAXYFA25pbAECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACFFNldFNjcmlwdFRyYW5zYWN0aW9uCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQVvd25lcgMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYDCQABAgUHJG1hdGNoMAIPRGF0YVRyYW5zYWN0aW9uBgcIsVdv", "height": 2222977, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C54YUT1HojHVjFhEjp69F9DstAeS1Le5M2sg5z3h8VRc Next: none Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'2QxxRX4t27XWvcwhfJbvgoppWbH1rYGfYbFdDtF53Abv'
55
6+@Callable(b)
7+func vote (c) = {
8+ let d = getString(this, toBase58String(b.callerPublicKey))
9+ if (isDefined(d))
10+ then throw("Already voted")
11+ else [StringEntry(toBase58String(b.callerPublicKey), c)]
12+ }
613
7-@Verifier(b)
8-func c () = {
9- let d = b
10- if ($isInstanceOf(d, "SetScriptTransaction"))
11- then {
12- let e = d
13- sigVerify(b.bodyBytes, b.proofs[0], a)
14- }
15- else false
14+
15+@Verifier(e)
16+func f () = {
17+ let g = e
18+ if ($isInstanceOf(g, "SetScriptTransaction"))
19+ then sigVerify(e.bodyBytes, e.proofs[0], a)
20+ else if ($isInstanceOf(g, "InvokeScriptTransaction"))
21+ then true
22+ else if ($isInstanceOf(g, "DataTransaction"))
23+ then true
24+ else false
1625 }
1726

github/deemru/w8io/026f985 
31.39 ms