tx · Ab4Jv22Sx84snMKpCrEscpSR8HDDfuBLUqxquR3WrB5u
3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss: -0.04000000 Waves
2020.08.11 21:25 [1128225] smart account 3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ab4Jv22Sx84snMKpCrEscpSR8HDDfuBLUqxquR3WrB5u",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1597170373065,
"version": 1,
"sender": "3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss",
"senderPublicKey": "7EaUr5Z6zmEQJXz7jVWXjW7xbJLakPjxFPTZFogi8wzr",
"proofs": [
"4xtFuF3TTHoFVvyTS8HohHtf2uv27gTcz5Dtsojsiyq3cWKhNXfYBtnJwZZzvazrjFjWJBjaaY7xKXyzPQy9kkcM"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAGcmFuZG9tAAAAAAQAAAAEaGFzaAkAAfcAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAAZudW1iZXIJAASxAAAAAQUAAAAEaGFzaAQAAAAGcmVzdWx0CQAAagAAAAIFAAAABm51bWJlcgAAAAAAAAABaAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGbnVtYmVyBQAAAAZyZXN1bHQFAAAAA25pbAAAAAANT5eR",
"chainId": 84,
"height": 1128225,
"spentComplexity": 0
}
View: original | compacted
Prev: 6qy2QwYYfrcarqwAZhg1kBkLDYEj7ijRkywwcn93GSx8
Next: CQjPERXL1sHyoXVJ6JMwzUWvo2r283jyceVeRRoQ4sKr
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func random (b) = { |
---|
8 | | - | let c = sha256(toBytes(b)) |
---|
9 | | - | let d = toInt(c) |
---|
10 | | - | let e = (d % 360) |
---|
11 | | - | WriteSet([DataEntry("number", e)]) |
---|
| 7 | + | func random () = { |
---|
| 8 | + | let b = sha256(a.transactionId) |
---|
| 9 | + | let c = toInt(b) |
---|
| 10 | + | let d = (c % 360) |
---|
| 11 | + | WriteSet([DataEntry("number", d)]) |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func random (b) = { |
---|
8 | | - | let c = sha256(toBytes(b)) |
---|
9 | | - | let d = toInt(c) |
---|
10 | | - | let e = (d % 360) |
---|
11 | | - | WriteSet([DataEntry("number", e)]) |
---|
| 7 | + | func random () = { |
---|
| 8 | + | let b = sha256(a.transactionId) |
---|
| 9 | + | let c = toInt(b) |
---|
| 10 | + | let d = (c % 360) |
---|
| 11 | + | WriteSet([DataEntry("number", d)]) |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|