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:
OldNewDifferences
44
55
66 @Callable(i)
7-func random (seed) = {
8- let hash = sha256(toBytes(seed))
7+func random () = {
8+ let hash = sha256(i.transactionId)
99 let number = toInt(hash)
1010 let result = (number % 360)
1111 WriteSet([DataEntry("number", result)])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func random (seed) = {
8- let hash = sha256(toBytes(seed))
7+func random () = {
8+ let hash = sha256(i.transactionId)
99 let number = toInt(hash)
1010 let result = (number % 360)
1111 WriteSet([DataEntry("number", result)])
1212 }
1313
1414

github/deemru/w8io/026f985 
50.05 ms