tx · ECE1oXh7iHS21hi45S7ni6ahWj2kdngkBRkfSiD1S3VF
3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM: -0.01000000 Waves
2022.11.24 19:00 [2331397] smart account 3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM > SELF 0.00000000 Waves
{
"type": 13,
"id": "ECE1oXh7iHS21hi45S7ni6ahWj2kdngkBRkfSiD1S3VF",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669305779758,
"version": 2,
"chainId": 84,
"sender": "3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM",
"senderPublicKey": "FB5Eb3jaoFSDQEnfsjbmvMoP3Cc8ejvBySpsfYWC1vBg",
"proofs": [
"2mz4a7Hm15RpCNTeUBUpUBzYGqvsocx9hu7UwHLp9g1W1YUghcqS3DN6CYYbZzMrHG4bGh1TDTr9gfZ1uwWQXnNs"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAABQAAAARkYXRhAAAAAQAAAAFpAQAAABpzYXZlVmFsdWVPblN1cHBsaWVyQWNjb3VudAAAAAIAAAANZGVsSW5mVGV4dEtleQAAAA9kZWxJbmZUZXh0VmFsdWUEAAAADGVnZ2VyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA5lZ2dlclB1YmxpY0tleQkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAEmVnZ2VyUHVibGljS2V5SGFzaAkAAfcAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAI2VnZ2VyUHVibGljS2V5SGFzaE9uU3VwcGxpZXJBY2NvdW50CQEAAAAHZ2V0RGF0YQAAAAIFAAAABHRoaXMCAAAAFGNvbm5lY3Rpb24uRWdnZXIucmVmCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAABXRlc3QxBQAAABJlZ2dlclB1YmxpY0tleUhhc2gFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5WmGQ4A==",
"height": 2331397,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4PeTLZMdZMiSsAmryV5HiwY9mw66W9zbE92EVGSA4M2K
Next: DSPEEaBmRp3foZJUBg7wmUghnzorGqbnWgsGxTt9nmnb
Diff:
Old | New | | Differences |
---|
16 | 16 | | func saveValueOnSupplierAccount (delInfTextKey,delInfTextValue) = { |
---|
17 | 17 | | let eggerAddress = toBase58String(i.caller.bytes) |
---|
18 | 18 | | let eggerPublicKey = toBase58String(i.callerPublicKey) |
---|
19 | | - | let eggerPublicKeyHash = sha256(toBytes(eggerPublicKey)) |
---|
| 19 | + | let eggerPublicKeyHash = sha256(i.callerPublicKey) |
---|
20 | 20 | | let eggerPublicKeyHashOnSupplierAccount = getData(this, "connection.Egger.ref") |
---|
21 | 21 | | [BinaryEntry("test1", eggerPublicKeyHash)] |
---|
22 | 22 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getData (adr,key) = { |
---|
5 | 5 | | let data = match getString(adr, key) { |
---|
6 | 6 | | case a: String => |
---|
7 | 7 | | a |
---|
8 | 8 | | case _ => |
---|
9 | 9 | | "" |
---|
10 | 10 | | } |
---|
11 | 11 | | data |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func saveValueOnSupplierAccount (delInfTextKey,delInfTextValue) = { |
---|
17 | 17 | | let eggerAddress = toBase58String(i.caller.bytes) |
---|
18 | 18 | | let eggerPublicKey = toBase58String(i.callerPublicKey) |
---|
19 | | - | let eggerPublicKeyHash = sha256(toBytes(eggerPublicKey)) |
---|
| 19 | + | let eggerPublicKeyHash = sha256(i.callerPublicKey) |
---|
20 | 20 | | let eggerPublicKeyHashOnSupplierAccount = getData(this, "connection.Egger.ref") |
---|
21 | 21 | | [BinaryEntry("test1", eggerPublicKeyHash)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | |
---|