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:
Old | New | | Differences |
---|
25 | 25 | | @Callable(a) |
---|
26 | 26 | | func approve (b) = { |
---|
27 | 27 | | 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") |
---|
30 | 30 | | else WriteSet([DataEntry(c, 1)]) |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func request (b) = { |
---|
8 | 8 | | let c = b |
---|
9 | 9 | | let d = { |
---|
10 | 10 | | let e = getInteger(this, c) |
---|
11 | 11 | | if ($isInstanceOf(e, "Int")) |
---|
12 | 12 | | then { |
---|
13 | 13 | | let f = e |
---|
14 | 14 | | true |
---|
15 | 15 | | } |
---|
16 | 16 | | else false |
---|
17 | 17 | | } |
---|
18 | 18 | | if (d) |
---|
19 | 19 | | then throw("The certificate was already requested") |
---|
20 | 20 | | else WriteSet([DataEntry(c, 0)]) |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Callable(a) |
---|
26 | 26 | | func approve (b) = { |
---|
27 | 27 | | 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") |
---|
30 | 30 | | else WriteSet([DataEntry(c, 1)]) |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|