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:
OldNewDifferences
77 func getLock (lockName) = {
88 let ok = match getBinary(this, lockName) {
99 case t: ByteVector =>
10- if ((t == i.caller.bytes))
11- then true
12- else (t == this.bytes)
10+ (t == i.caller.bytes)
1311 case Unit =>
1412 true
1513 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getLock (lockName) = {
88 let ok = match getBinary(this, lockName) {
99 case t: ByteVector =>
10- if ((t == i.caller.bytes))
11- then true
12- else (t == this.bytes)
10+ (t == i.caller.bytes)
1311 case Unit =>
1412 true
1513 }
1614 if (ok)
1715 then WriteSet([DataEntry(lockName, i.caller.bytes)])
1816 else throw("Already locked by another")
1917 }
2018
2119
2220
2321 @Callable(i)
2422 func releaseLock (lockName) = {
2523 let ok = match getBinary(this, lockName) {
2624 case t: ByteVector =>
2725 (t == i.caller.bytes)
2826 case Unit =>
2927 false
3028 }
3129 if (ok)
3230 then WriteSet([DataEntry(lockName, this.bytes)])
3331 else throw("Locked by another")
3432 }
3533
3634

github/deemru/w8io/026f985 
26.71 ms