tx · Hcsw6mWxJA2Np2NKEUjp5wiwo8B128bnhpCuAxS7W1ZZ

3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN:  -0.01400000 Waves

2019.07.25 15:14 [601562] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves

{ "type": 13, "id": "Hcsw6mWxJA2Np2NKEUjp5wiwo8B128bnhpCuAxS7W1ZZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1564056836777, "version": 1, "sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN", "senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh", "proofs": [ "5DXAc7YHxtob8pw7C77zN7mFyHWPq3trd8934ong9wtrPDhXJBc3Gej35qwHNuQxvV5sstAXjXbsbxquFentpjfT" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdnZXRMb2NrAAAAAQAAAAhsb2NrTmFtZQQAAAACb2sEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAAXQICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMGCQAAAAAAAAIFAAAAAXQIBQAAAAR0aGlzAAAABWJ5dGVzBAAAAARVbml0BQAAAAckbWF0Y2gwBgMFAAAAAm9rCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAhsb2NrTmFtZQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAADbmlsCQAAAgAAAAECAAAAGUFscmVhZHkgbG9ja2VkIGJ5IGFub3RoZXIAAAABaQEAAAALcmVsZWFzZUxvY2sAAAABAAAACGxvY2tOYW1lBAAAAAJvawQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzBQAAAAhsb2NrTmFtZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAABdAUAAAAHJG1hdGNoMAkAAAAAAAACBQAAAAF0CAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAARVbml0BQAAAAckbWF0Y2gwBwMFAAAAAm9rCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAhsb2NrTmFtZQgFAAAABHRoaXMAAAAFYnl0ZXMFAAAAA25pbAkAAAIAAAABAgAAABFMb2NrZWQgYnkgYW5vdGhlcgAAAABjfhrc", "chainId": 84, "height": 601562, "spentComplexity": 0 } View: original | compacted Prev: Ddjn6f6shy9Hh1GnawgUucDcNCN9np8dMhE517RrGa2L Next: EvN6hmusa3tRNqPWBcGf53Z63wBvFAphHg5htwhaQ4Bm Diff:
OldNewDifferences
77 func getLock (lockName) = {
88 let ok = match getBinary(this, lockName) {
99 case t: ByteVector =>
10- if ((t != i.caller.bytes))
10+ if ((t == i.caller.bytes))
1111 then true
1212 else (t == this.bytes)
1313 case Unit =>
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))
10+ if ((t == i.caller.bytes))
1111 then true
1212 else (t == this.bytes)
1313 case Unit =>
1414 true
1515 }
1616 if (ok)
1717 then WriteSet([DataEntry(lockName, i.caller.bytes)])
1818 else throw("Already locked by another")
1919 }
2020
2121
2222
2323 @Callable(i)
2424 func releaseLock (lockName) = {
2525 let ok = match getBinary(this, lockName) {
2626 case t: ByteVector =>
2727 (t == i.caller.bytes)
2828 case Unit =>
2929 false
3030 }
3131 if (ok)
3232 then WriteSet([DataEntry(lockName, this.bytes)])
3333 else throw("Locked by another")
3434 }
3535
3636

github/deemru/w8io/026f985 
34.15 ms