tx · 2NUvt8SdFJVAXUfzYr4MkaKTX1zZQgRigUHc7NzkLepF
3N6mVEULck7uViUaDo1wi98wch9XzYNXriv: -1.00000000 Waves
2019.02.14 14:09 [494668] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 test random
{
"type": 15,
"id": "2NUvt8SdFJVAXUfzYr4MkaKTX1zZQgRigUHc7NzkLepF",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550142650359,
"version": 1,
"sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv",
"senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs",
"proofs": [
"219wepF2urjjmg9SuX1WuK58iFPwPjYPv31m2kLa2BwMsWtu5xAJzzo8MQtQM8FAzGktKhHWCoJaziHhzDDB2pr6"
],
"assetId": "6gH6B4FyLECw72DpcYZ3ZvYXamdv1QRReXcXcMt7cxhp",
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAADHJhbmRvbVN0cmluZwIAAAAEQVNnPQQAAAALcmFuZG9tQnl0ZXMJAAJbAAAAAQUAAAAMcmFuZG9tU3RyaW5nBAAAAAljb25kaXRpb24JAAAAAAAAAgkAAMkAAAACBQAAAAtyYW5kb21CeXRlcwAAAAAAAAAAAQkAAZoAAAABAAAAAAAAAACACQAAAgAAAAEJAAGlAAAAAQUAAAAJY29uZGl0aW9uBuIrZao=",
"chainId": 84,
"height": 494668,
"spentComplexity": 0
}
View: original | compacted
Prev: 8cz3kzwSUHCnj826CGufU44XvX87EzHf2EDvXbiFDVqp
Next: 9jG4nxToXfNLRcpFi1VdBypQ9w1A9UFRa9ECmF3BjyP2
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | | - | let randomString = "lYcyZgsCBwrc8EDrtYxeWP0GRkYPJyT7sW2yFaFgcwMfysb8diAaUT7yFaCpsOehLLazn0xWVB2OTi+ZG8IgnCND4xMWS4iQO1p844Vwk3FxrIOrmfyec+dmaaAVEB0yULOdgoeXDsPh8ljeeTFT/QZhPoWi1az/DlGLQ84Ip2BW4RmLYeTb6veAmUviIRidXw98AQNiT1u59N78hOyxbxWu/sVYdroOnxXPKu5l6GipPv8TM1yjMcwYyJ8R6QARQDJ6bZw+0Sliz9yjVriQ61ptrmkO9IlRFcAKUnnUVpRKECHVSRrp4DdvQg4WzjWsG3WM1V2WDltAsptmHGa1Hg==" |
---|
| 5 | + | let randomString = "ASg=" |
---|
6 | 6 | | let randomBytes = fromBase64String(randomString) |
---|
7 | | - | throw(toString(size(randomString))) |
---|
| 7 | + | let condition = (take(randomBytes, 1) == toBytes(128)) |
---|
| 8 | + | throw(toString(condition)) |
---|
8 | 9 | | case _ => |
---|
9 | 10 | | true |
---|
10 | 11 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | | - | let randomString = "lYcyZgsCBwrc8EDrtYxeWP0GRkYPJyT7sW2yFaFgcwMfysb8diAaUT7yFaCpsOehLLazn0xWVB2OTi+ZG8IgnCND4xMWS4iQO1p844Vwk3FxrIOrmfyec+dmaaAVEB0yULOdgoeXDsPh8ljeeTFT/QZhPoWi1az/DlGLQ84Ip2BW4RmLYeTb6veAmUviIRidXw98AQNiT1u59N78hOyxbxWu/sVYdroOnxXPKu5l6GipPv8TM1yjMcwYyJ8R6QARQDJ6bZw+0Sliz9yjVriQ61ptrmkO9IlRFcAKUnnUVpRKECHVSRrp4DdvQg4WzjWsG3WM1V2WDltAsptmHGa1Hg==" |
---|
| 5 | + | let randomString = "ASg=" |
---|
6 | 6 | | let randomBytes = fromBase64String(randomString) |
---|
7 | | - | throw(toString(size(randomString))) |
---|
| 7 | + | let condition = (take(randomBytes, 1) == toBytes(128)) |
---|
| 8 | + | throw(toString(condition)) |
---|
8 | 9 | | case _ => |
---|
9 | 10 | | true |
---|
10 | 11 | | } |
---|