tx · EvN6hmusa3tRNqPWBcGf53Z63wBvFAphHg5htwhaQ4Bm
3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN: -0.01500000 Waves
2019.07.25 15:21 [601569] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves
{
"type": 13,
"id": "EvN6hmusa3tRNqPWBcGf53Z63wBvFAphHg5htwhaQ4Bm",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1564057328740,
"version": 1,
"sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN",
"senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh",
"proofs": [
"peDLFNyWS22uY2boQUCPC9MtRQbqBSJe2ktyXFnSB1fPEgosLTHxF2EXve8xoaoef8CojfqPrxRL5Cg1bX2CPZi"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdnZXRMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABdAgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAYDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAkAAAIAAAABAgAAABlBbHJlYWR5IGxvY2tlZCBieSBhbm90aGVyAAAAAWkBAAAAC3JlbGVhc2VMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABdAgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAcDBQAAAAJvawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAIbG9ja05hbWUIBQAAAAR0aGlzAAAABWJ5dGVzBQAAAANuaWwJAAACAAAAAQIAAAARTG9ja2VkIGJ5IGFub3RoZXIAAAAAMujS4g==",
"chainId": 84,
"height": 601569,
"spentComplexity": 0
}
View: original | compacted
Prev: Hcsw6mWxJA2Np2NKEUjp5wiwo8B128bnhpCuAxS7W1ZZ
Next: 9WBeRwUDqtTWgfcrZXsgxMm9uAsBew3bh41YGR2K3omv
Diff:
Old | New | | Differences |
---|
10 | 10 | | if ($isInstanceOf(d, "ByteVector")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | | - | if ((e == a.caller.bytes)) |
---|
14 | | - | then true |
---|
15 | | - | else (e == this.bytes) |
---|
| 13 | + | (e == a.caller.bytes) |
---|
16 | 14 | | } |
---|
17 | 15 | | else { |
---|
18 | 16 | | let f = d |
---|
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 getLock (b) = { |
---|
8 | 8 | | let c = { |
---|
9 | 9 | | let d = getBinary(this, b) |
---|
10 | 10 | | if ($isInstanceOf(d, "ByteVector")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | | - | if ((e == a.caller.bytes)) |
---|
14 | | - | then true |
---|
15 | | - | else (e == this.bytes) |
---|
| 13 | + | (e == a.caller.bytes) |
---|
16 | 14 | | } |
---|
17 | 15 | | else { |
---|
18 | 16 | | let f = d |
---|
19 | 17 | | true |
---|
20 | 18 | | } |
---|
21 | 19 | | } |
---|
22 | 20 | | if (c) |
---|
23 | 21 | | then WriteSet([DataEntry(b, a.caller.bytes)]) |
---|
24 | 22 | | else throw("Already locked by another") |
---|
25 | 23 | | } |
---|
26 | 24 | | |
---|
27 | 25 | | |
---|
28 | 26 | | |
---|
29 | 27 | | @Callable(a) |
---|
30 | 28 | | func releaseLock (b) = { |
---|
31 | 29 | | let c = { |
---|
32 | 30 | | let d = getBinary(this, b) |
---|
33 | 31 | | if ($isInstanceOf(d, "ByteVector")) |
---|
34 | 32 | | then { |
---|
35 | 33 | | let e = d |
---|
36 | 34 | | (e == a.caller.bytes) |
---|
37 | 35 | | } |
---|
38 | 36 | | else { |
---|
39 | 37 | | let f = d |
---|
40 | 38 | | false |
---|
41 | 39 | | } |
---|
42 | 40 | | } |
---|
43 | 41 | | if (c) |
---|
44 | 42 | | then WriteSet([DataEntry(b, this.bytes)]) |
---|
45 | 43 | | else throw("Locked by another") |
---|
46 | 44 | | } |
---|
47 | 45 | | |
---|
48 | 46 | | |
---|