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
2222 @Callable(i)
2323 func approve (name) = {
2424 let key = toUtf8String(sha256(toBytes(name)))
25- if (!(isDefined(getIntegerValue(this, key))))
26- then throw("The certificate was not requested")
25+ if ((i.caller != this))
26+ then throw("dApp owner allowed only")
2727 else WriteSet([DataEntry(key, 1)])
2828 }
2929
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func request (name) = {
88 let key = name
99 let wasRequested = match getInteger(this, key) {
1010 case a: Int =>
1111 true
1212 case _ =>
1313 false
1414 }
1515 if (wasRequested)
1616 then throw("The certificate was already requested")
1717 else WriteSet([DataEntry(key, 0)])
1818 }
1919
2020
2121
2222 @Callable(i)
2323 func approve (name) = {
2424 let key = toUtf8String(sha256(toBytes(name)))
25- if (!(isDefined(getIntegerValue(this, key))))
26- then throw("The certificate was not requested")
25+ if ((i.caller != this))
26+ then throw("dApp owner allowed only")
2727 else WriteSet([DataEntry(key, 1)])
2828 }
2929
3030

github/deemru/w8io/026f985 
21.36 ms