tx · BirznnTUaNp2k97Jzmxgb3nYSM6tMMoStCznEhCXLhiq 3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt: -0.01000000 Waves 2023.05.22 09:51 [2588840] smart account 3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt > SELF 0.00000000 Waves
{ "type": 13, "id": "BirznnTUaNp2k97Jzmxgb3nYSM6tMMoStCznEhCXLhiq", "fee": 1000000, "feeAssetId": null, "timestamp": 1684738344340, "version": 2, "chainId": 84, "sender": "3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt", "senderPublicKey": "6VehQ4nhpSn9EW76xuyThbHcUFYhjEbb4sJDrys5ZEx5", "proofs": [ "4g7CuMKhAzwpme11d96kTJ334oM1DGcqS5nbvnKvzUywvXRqL2GVeopeAw6W8s7AhbafiLg1vqH61RA4wxiX6BGo" ], "script": "base64:BgIMCAISAwoBARIDCgEBAAIBaQEOc2V0dGVySU5URVJOQUwBAW4EBWNoZWNrAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwYJAAIBAgdFUlJPUiAxAwkAAAIFBWNoZWNrBQVjaGVjawQGdGltZXN0BAckbWF0Y2gwCQDtBwEFBmhlaWdodAMJAAECBQckbWF0Y2gwAglCbG9ja0luZm8EAmJpBQckbWF0Y2gwCAUCYmkJdGltZXN0YW1wCQACAQIHRVJST1IgMgkAzAgCCQEMSW50ZWdlckVudHJ5AgIIbnVtVmFsdWUFAW4JAMwIAgkBDEludGVnZXJFbnRyeQICAWgFBmhlaWdodAkAzAgCCQEMSW50ZWdlckVudHJ5AgIBdAUGdGltZXN0BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEGc2V0dGVyAQFuBA1vdGhlckNvbnRyYWN0CQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXBNdUdOOHJXOUVwUHd6RVRBUXo4OFBlOVRRaFN3aXJpcQQCdGMJAPwHBAUEdGhpcwIOc2V0dGVySU5URVJOQUwJAMwIAgUBbgUDbmlsBQNuaWwDCQAAAgUCdGMFAnRjBAJvYwkA/AcEBQ1vdGhlckNvbnRyYWN0AgZ1cGRhdGUFA25pbAUDbmlsAwkAAAIFAm9jBQJvYwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAGpq9l4=", "height": 2588840, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5PH35y5jZeKd78yK4ARHT9E6TSEbDBmQKSQCR282Asba Next: Ey6EjbJoETB49aqMLQf3bYRx99mHNSewkxF7HQtoD47X Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func setterINTERNAL (n) = { | |
8 | 8 | let check = if ((i.caller == this)) | |
9 | 9 | then true | |
10 | 10 | else throw("ERROR 1") | |
11 | 11 | if ((check == check)) | |
12 | 12 | then { | |
13 | 13 | let timest = match blockInfoByHeight(height) { | |
14 | 14 | case bi: BlockInfo => | |
15 | 15 | bi.timestamp | |
16 | 16 | case _ => | |
17 | 17 | throw("ERROR 2") | |
18 | 18 | } | |
19 | 19 | [IntegerEntry("numValue", n), IntegerEntry("h", height), IntegerEntry("t", timest)] | |
20 | 20 | } | |
21 | 21 | else throw("Strict value is not equal to itself.") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func setter (n) = { | |
28 | 28 | let otherContract = addressFromStringValue("3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq") | |
29 | 29 | let tc = invoke(this, "setterINTERNAL", [n], nil) | |
30 | 30 | if ((tc == tc)) | |
31 | 31 | then { | |
32 | 32 | let oc = invoke(otherContract, "update", nil, nil) | |
33 | 33 | if ((oc == oc)) | |
34 | 34 | then nil | |
35 | 35 | else throw("Strict value is not equal to itself.") | |
36 | 36 | } | |
37 | 37 | else throw("Strict value is not equal to itself.") | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 |
github/deemru/w8io/169f3d6 26.54 ms ◑