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(i) |
---|
7 | 7 | | func request (name) = { |
---|
8 | | - | let key = toBase64String(sha256(toBytes(name))) |
---|
| 8 | + | let key = toBase64String(sha256(fromBase64String(name))) |
---|
9 | 9 | | WriteSet([DataEntry(key, 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(i) |
---|
7 | 7 | | func request (name) = { |
---|
8 | | - | let key = toBase64String(sha256(toBytes(name))) |
---|
| 8 | + | let key = toBase64String(sha256(fromBase64String(name))) |
---|
9 | 9 | | WriteSet([DataEntry(key, 0)]) |
---|
10 | 10 | | } |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func approve (name) = { |
---|
16 | 16 | | let key = toUtf8String(sha256(toBytes(name))) |
---|
17 | 17 | | if (!(isDefined(getIntegerValue(this, key)))) |
---|
18 | 18 | | then throw("The certificate was not requested") |
---|
19 | 19 | | else WriteSet([DataEntry(key, 1)]) |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|