tx · A71BjixeyXwQpzX3haGjx8t575FxNfLbQrfZvrSjMNnn
3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u: -0.01400000 Waves
2019.11.21 14:19 [774870] smart account 3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u > SELF 0.00000000 Waves
{
"type": 13,
"id": "A71BjixeyXwQpzX3haGjx8t575FxNfLbQrfZvrSjMNnn",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574335056869,
"version": 1,
"sender": "3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u",
"senderPublicKey": "3U1CEsDmMXyPp5z1NXtQE4HZiK5JYASFDu1gudjREyM4",
"proofs": [
"4nXXxb9oYJNNWrUMUPcGACHq6wzXPQFDAMaTib5nHfPXZrHC9LahjaPtoUKAivRGcgxYtvdgAnxCZkMTsGGyZkbg"
],
"script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAdyZXF1ZXN0AAAAAQAAAARuYW1lBAAAAANrZXkJAAJaAAAAAQkAAfcAAAABCQABmwAAAAEFAAAABG5hbWUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAAB2FwcHJvdmUAAAABAAAABG5hbWUEAAAAA2tleQkABLAAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAAEbmFtZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMFAAAAA2tleQkAAAIAAAABAgAAACFUaGUgY2VydGlmaWNhdGUgd2FzIG5vdCByZXF1ZXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQAAAAAAAAAAAQUAAAADbmlsAAAAALuXJwU=",
"chainId": 84,
"height": 774870,
"spentComplexity": 0
}
View: original | compacted
Prev: Aa1mBa9yHFQGmfLRocM8jMagSAbFxE2Xqj1YYe146sfR
Next: SoHYFY8gKhfDMbiM88JKJWxWjkeWdfbcm3xzThYyoDw
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func request (b) = { |
---|
8 | | - | let c = b |
---|
| 8 | + | let c = toBase64String(sha256(toBytes(b))) |
---|
9 | 9 | | WriteSet([DataEntry(c, 0)]) |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
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 | 7 | | func request (b) = { |
---|
8 | | - | let c = b |
---|
| 8 | + | let c = toBase64String(sha256(toBytes(b))) |
---|
9 | 9 | | WriteSet([DataEntry(c, 0)]) |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(a) |
---|
15 | 15 | | func approve (b) = { |
---|
16 | 16 | | let c = toUtf8String(sha256(toBytes(b))) |
---|
17 | 17 | | if (!(isDefined(getIntegerValue(this, c)))) |
---|
18 | 18 | | then throw("The certificate was not requested") |
---|
19 | 19 | | else WriteSet([DataEntry(c, 1)]) |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|