tx · 3G2BD8xNHqkUcb21RnbPEREomBjpSYfBCWo467k4Ch4A

3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u:  -0.01400000 Waves

2019.11.21 15:11 [774928] smart account 3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u > SELF 0.00000000 Waves

{ "type": 13, "id": "3G2BD8xNHqkUcb21RnbPEREomBjpSYfBCWo467k4Ch4A", "fee": 1400000, "feeAssetId": null, "timestamp": 1574338204097, "version": 1, "sender": "3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u", "senderPublicKey": "3U1CEsDmMXyPp5z1NXtQE4HZiK5JYASFDu1gudjREyM4", "proofs": [ "azZR1GWAgiz5WbRh4coR53gpWXSVC4cpsxN1o4WBKqRnVPZEpf4LKV7ydMrWYDhJNw81CcvcWcSbLDmKqNJ9VU5" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAdyZXF1ZXN0AAAAAQAAAARuYW1lBAAAAANrZXkFAAAABG5hbWUEAAAADHdhc1JlcXVlc3RlZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAYHAwUAAAAMd2FzUmVxdWVzdGVkCQAAAgAAAAECAAAAJVRoZSBjZXJ0aWZpY2F0ZSB3YXMgYWxyZWFkeSByZXF1ZXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAAB2FwcHJvdmUAAAABAAAABG5hbWUEAAAAA2tleQkABLAAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAAEbmFtZQMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwkAAAIAAAABAgAAABdkQXBwIG93bmVyIGFsbG93ZWQgb25seQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAADa2V5AAAAAAAAAAABBQAAAANuaWwAAAAA2kzMZw==", "chainId": 84, "height": 774928, "spentComplexity": 0 } View: original | compacted Prev: 3Q71AcxfcmvLCvw3rkHmsSR6YPa2xNBjdhHmueaE7Q3Y Next: 5eTYrsBaUAjPKd9ty1TLZELE8bnjhFofgzkFz3VTR1AP Diff:
OldNewDifferences
2525 @Callable(a)
2626 func approve (b) = {
2727 let c = toUtf8String(sha256(toBytes(b)))
28- if (!(isDefined(getIntegerValue(this, c))))
29- then throw("The certificate was not requested")
28+ if ((a.caller != this))
29+ then throw("dApp owner allowed only")
3030 else WriteSet([DataEntry(c, 1)])
3131 }
3232
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func request (b) = {
88 let c = b
99 let d = {
1010 let e = getInteger(this, c)
1111 if ($isInstanceOf(e, "Int"))
1212 then {
1313 let f = e
1414 true
1515 }
1616 else false
1717 }
1818 if (d)
1919 then throw("The certificate was already requested")
2020 else WriteSet([DataEntry(c, 0)])
2121 }
2222
2323
2424
2525 @Callable(a)
2626 func approve (b) = {
2727 let c = toUtf8String(sha256(toBytes(b)))
28- if (!(isDefined(getIntegerValue(this, c))))
29- then throw("The certificate was not requested")
28+ if ((a.caller != this))
29+ then throw("dApp owner allowed only")
3030 else WriteSet([DataEntry(c, 1)])
3131 }
3232
3333

github/deemru/w8io/026f985 
21.54 ms