tx · SoHYFY8gKhfDMbiM88JKJWxWjkeWdfbcm3xzThYyoDw
3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u: -0.01400000 Waves
2019.11.21 14:21 [774871] smart account 3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u > SELF 0.00000000 Waves
{
"type": 13,
"id": "SoHYFY8gKhfDMbiM88JKJWxWjkeWdfbcm3xzThYyoDw",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574335155534,
"version": 1,
"sender": "3MtCvj6PXRMffirQTPHjBL5u7fhoUrn7q3u",
"senderPublicKey": "3U1CEsDmMXyPp5z1NXtQE4HZiK5JYASFDu1gudjREyM4",
"proofs": [
"61Ms6PWviTdjS9ot4SWCGQcdNf99eZF6Dfvq4ik4hCmCAwzznnm27ZLHgEXnc1vdPLcCLbih7mrMDzeQYRdWW3T4"
],
"script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAdyZXF1ZXN0AAAAAQAAAARuYW1lBAAAAANrZXkJAAJaAAAAAQkAAfcAAAABCQACWwAAAAEFAAAABG5hbWUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAAB2FwcHJvdmUAAAABAAAABG5hbWUEAAAAA2tleQkABLAAAAABCQAB9wAAAAEJAAGbAAAAAQUAAAAEbmFtZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMFAAAAA2tleQkAAAIAAAABAgAAACFUaGUgY2VydGlmaWNhdGUgd2FzIG5vdCByZXF1ZXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQAAAAAAAAAAAQUAAAADbmlsAAAAAJInh5U=",
"chainId": 84,
"height": 774871,
"spentComplexity": 0
}
View: original | compacted
Prev: A71BjixeyXwQpzX3haGjx8t575FxNfLbQrfZvrSjMNnn
Next: GnMQtGkcijWcfx8ryXTMFsBTfkCL8FAX9Y74dmquBRnC
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func request (b) = { |
---|
8 | | - | let c = toBase64String(sha256(toBytes(b))) |
---|
| 8 | + | let c = toBase64String(sha256(fromBase64String(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 = toBase64String(sha256(toBytes(b))) |
---|
| 8 | + | let c = toBase64String(sha256(fromBase64String(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 | | |
---|