tx · 9nZL2VYJXhhWKVCeQVo17YYD9HjGb5b52jSQHk9Lk73U
3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6: -0.01000000 Waves
2023.03.16 13:35 [2492468] smart account 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9nZL2VYJXhhWKVCeQVo17YYD9HjGb5b52jSQHk9Lk73U",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1678962917961,
"version": 2,
"chainId": 84,
"sender": "3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6",
"senderPublicKey": "3pW4h7e3NAcqGkvc1AyziZLMPSsG2eXvCGU7vLxPXkaq",
"proofs": [
"2CP7kTcvCKr4T6kteM9FZngXFPYNpzqKtBrNssRRJFLgcxTjVVJ5n6h45byquyPzHqpkoY58JA983BqHbipcZjZL"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIFCgMBAQEAAAAAAAAAAQAAAAFpAQAAAARjYWxsAAAAAwAAAAtmaXJzdE51bWJlcgAAAAxzZWNvbmROdW1iZXIAAAAIbXVsdGlwbHkEAAAADGJpZ0ludFJlc3VsdAkAAToAAAACCQABOQAAAAIJAAE2AAAAAQUAAAALZmlyc3ROdW1iZXIJAAE2AAAAAQUAAAAIbXVsdGlwbHkJAAE2AAAAAQUAAAAMc2Vjb25kTnVtYmVyBAAAAAZyZXN1bHQJAAGgAAAAAQUAAAAMYmlnSW50UmVzdWx0BAAAAAhiYWNrd2FyZAkAAToAAAACCQABOQAAAAIFAAAADGJpZ0ludFJlc3VsdAkAATYAAAABBQAAAAxzZWNvbmROdW1iZXIJAAE2AAAAAQUAAAAIbXVsdGlwbHkJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABnJlc3VsdAUAAAAGcmVzdWx0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA5iYWNrd2FyZFJlc3VsdAkAAaAAAAABBQAAAAhiYWNrd2FyZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkaX4zF",
"height": 2492468,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2V6JEWnj7NfZBPdBHPgTJNn2Tste5tL3YHPQbtMKT9Yk
Next: 8SpGJhg2w2nLTCuYgpnMcvzY7Q96p9CZMYeu65JKbp32
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call (firstNumber,secondNumber,multiply) = { |
---|
8 | | - | let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / (toBigInt(secondNumber) * toBigInt(multiply))) |
---|
| 8 | + | let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / toBigInt(secondNumber)) |
---|
9 | 9 | | let result = toInt(bigIntResult) |
---|
10 | | - | [IntegerEntry("result", result)] |
---|
| 10 | + | let backward = ((bigIntResult * toBigInt(secondNumber)) / toBigInt(multiply)) |
---|
| 11 | + | [IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward))] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
13 | 14 | | |
---|
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 (firstNumber,secondNumber,multiply) = { |
---|
8 | | - | let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / (toBigInt(secondNumber) * toBigInt(multiply))) |
---|
| 8 | + | let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / toBigInt(secondNumber)) |
---|
9 | 9 | | let result = toInt(bigIntResult) |
---|
10 | | - | [IntegerEntry("result", result)] |
---|
| 10 | + | let backward = ((bigIntResult * toBigInt(secondNumber)) / toBigInt(multiply)) |
---|
| 11 | + | [IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward))] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
13 | 14 | | |
---|
14 | 15 | | @Verifier(tx) |
---|
15 | 16 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
16 | 17 | | |
---|