tx · rkk3TLTXN29dPq5PUhJN4RndwuwXTQ29GowtNHb3EgT
3MrxmAKscY6yupdg46vG22SfEpiWCRKCXoF: -0.01400000 Waves
2019.06.24 16:09 [556208] smart account 3MrxmAKscY6yupdg46vG22SfEpiWCRKCXoF > SELF 0.00000000 Waves
{
"type": 13,
"id": "rkk3TLTXN29dPq5PUhJN4RndwuwXTQ29GowtNHb3EgT",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1561381837310,
"version": 1,
"sender": "3MrxmAKscY6yupdg46vG22SfEpiWCRKCXoF",
"senderPublicKey": "A9JHYn2D2rRc3KEJg6RgULMjiwL55FjmYkWM1Uhg3Sze",
"proofs": [
"4PtZe2Kxe7Yx3JozyjWb7JJeawJ9nc6RAuTe5EFx1drxqcYixzWxoTYKtBqFwPCFdGGcZzbUi17qFHwaDHncwHVi"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAQAAAA1nZXRUZXN0U2hhMjU2AAAAAAQAAAAHJG1hdGNoMAkABBwAAAACBQAAAAR0aGlzAgAAAAp0ZXN0c2hhMjU2AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAQAAAAMBuXsAAAABAAAAA2N0eAEAAAAKdGVzdFNoYTI1NgAAAAAEAAAAAWIJAQAAAA1nZXRUZXN0U2hhMjU2AAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKdGVzdHNoYTI1NgkAAfcAAAABCQABmwAAAAECAAAADmNvcnJlY3QgYW5zd2VyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAA10ZXN0U2hhMjU2T3V0CQEAAAANZ2V0VGVzdFNoYTI1NgAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADHRlc3RTaGEyNTZFcQkAAAAAAAACCQAB9wAAAAEJAAGbAAAAAQIAAAAOY29ycmVjdCBhbnN3ZXIJAQAAAA1nZXRUZXN0U2hhMjU2AAAAAAUAAAADbmlsAAAAAI4NLGI=",
"chainId": 84,
"height": 556208,
"spentComplexity": 0
}
View: original | compacted
Prev: 59xLjXPfqrxxEZu9MJqXV92mkdJVxEScWWMJ6Ms9LdsT
Next: none
Diff:
Old | New | | Differences |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(ctx) |
---|
13 | | - | func testSha256 () = WriteSet([DataEntry("testsha256", sha256(toBytes("correct answer"))), DataEntry("testSha256Out", getTestSha256())]) |
---|
| 13 | + | func testSha256 () = { |
---|
| 14 | + | let b = getTestSha256() |
---|
| 15 | + | WriteSet([DataEntry("testsha256", sha256(toBytes("correct answer"))), DataEntry("testSha256Out", getTestSha256()), DataEntry("testSha256Eq", (sha256(toBytes("correct answer")) == getTestSha256()))]) |
---|
| 16 | + | } |
---|
14 | 17 | | |
---|
15 | 18 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getTestSha256 () = match getBinary(this, "testsha256") { |
---|
5 | 5 | | case b: ByteVector => |
---|
6 | 6 | | b |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | base58'abc' |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(ctx) |
---|
13 | | - | func testSha256 () = WriteSet([DataEntry("testsha256", sha256(toBytes("correct answer"))), DataEntry("testSha256Out", getTestSha256())]) |
---|
| 13 | + | func testSha256 () = { |
---|
| 14 | + | let b = getTestSha256() |
---|
| 15 | + | WriteSet([DataEntry("testsha256", sha256(toBytes("correct answer"))), DataEntry("testSha256Out", getTestSha256()), DataEntry("testSha256Eq", (sha256(toBytes("correct answer")) == getTestSha256()))]) |
---|
| 16 | + | } |
---|
14 | 17 | | |
---|
15 | 18 | | |
---|