tx · AHekxNJDgV26jXxPHeq3WfkY39a8Me74VSBy8nzUPuUh
3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ: -0.01000000 Waves
2023.03.01 11:07 [2470741] smart account 3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "AHekxNJDgV26jXxPHeq3WfkY39a8Me74VSBy8nzUPuUh",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1677658062302,
"version": 2,
"chainId": 84,
"sender": "3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ",
"senderPublicKey": "A8TH6dNbNo7KSojkXTRdR78cGa6d9oModHh52Pyuje6h",
"proofs": [
"59JeK6sc3dcTLrK6rJTHfNA9mtnXQzpcbDz3kVaaYEn27qKamw7tMozcZT1ufaRJuZMeejZUWFADsdEMTh9VoMrt"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAARjYWxsAAAAAAQAAAADcmVzCQAD/AAAAAQFAAAABHRoaXMCAAAAEGludGVybmFsRnVuY3Rpb24FAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAANyZXMFAAAAA3JlcwQAAAAGcmVzdWx0CQAAaAAAAAIJAABpAAAAAgAAAAAAAGrPwAAAAAAAAC3GwAAAAAAAAAAD6AQAAAAHcmVzdWx0MQkAAGkAAAACCQAAaAAAAAIAAAAAAABqz8AAAAAAAAAAAGQAAAAAAAAtxsAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABlRlc3QgMQUAAAAGcmVzdWx0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZUZXN0IDIFAAAAB3Jlc3VsdDEFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAQaW50ZXJuYWxGdW5jdGlvbgAAAAADCQAAAAAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAEdGhpcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdDYWxsZWQyAgAAAANZRVMFAAAAA25pbAkAAAIAAAABAgAAABFJbnRlcm5hbCBmdW5jdGlvbgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5hsl2iA==",
"height": 2470741,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 47QCzgKHXTu4dU32BjdCjUFYw8iyEMKD8Q9ibtgw1hwc
Next: Hr8KgEr3GTp6ordk7CyVW1N3cpmy1rdzUgs16CgY6UEr
Diff:
Old | New | | Differences |
---|
7 | 7 | | func call () = { |
---|
8 | 8 | | let res = invoke(this, "internalFunction", nil, nil) |
---|
9 | 9 | | if ((res == res)) |
---|
10 | | - | then nil |
---|
| 10 | + | then { |
---|
| 11 | + | let result = ((7000000 / 3000000) * 1000) |
---|
| 12 | + | let result1 = ((7000000 * 100) / 3000000) |
---|
| 13 | + | [IntegerEntry("Test 1", result), IntegerEntry("Test 2", result1)] |
---|
| 14 | + | } |
---|
11 | 15 | | else throw("Strict value is not equal to itself.") |
---|
12 | 16 | | } |
---|
13 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call () = { |
---|
8 | 8 | | let res = invoke(this, "internalFunction", nil, nil) |
---|
9 | 9 | | if ((res == res)) |
---|
10 | | - | then nil |
---|
| 10 | + | then { |
---|
| 11 | + | let result = ((7000000 / 3000000) * 1000) |
---|
| 12 | + | let result1 = ((7000000 * 100) / 3000000) |
---|
| 13 | + | [IntegerEntry("Test 1", result), IntegerEntry("Test 2", result1)] |
---|
| 14 | + | } |
---|
11 | 15 | | else throw("Strict value is not equal to itself.") |
---|
12 | 16 | | } |
---|
13 | 17 | | |
---|
14 | 18 | | |
---|
15 | 19 | | |
---|
16 | 20 | | @Callable(i) |
---|
17 | 21 | | func internalFunction () = if ((i.caller == this)) |
---|
18 | 22 | | then [StringEntry("Called2", "YES")] |
---|
19 | 23 | | else throw("Internal function") |
---|
20 | 24 | | |
---|
21 | 25 | | |
---|
22 | 26 | | @Verifier(tx) |
---|
23 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 28 | | |
---|