tx · 3BHuRyqGb84YQBy5vjHjTeYnHN3ifaqYy7PThX26HXdx
3NAjrUCA7omNC3y1cXqDzVPzLo3jZzmnoFv: -0.02400000 Waves
2020.12.13 15:55 [1306945] smart account 3NAjrUCA7omNC3y1cXqDzVPzLo3jZzmnoFv > SELF 0.00000000 Waves
{
"type": 13,
"id": "3BHuRyqGb84YQBy5vjHjTeYnHN3ifaqYy7PThX26HXdx",
"fee": 2400000,
"feeAssetId": null,
"timestamp": 1607864177963,
"version": 2,
"chainId": 84,
"sender": "3NAjrUCA7omNC3y1cXqDzVPzLo3jZzmnoFv",
"senderPublicKey": "EaamFvaPraibaDDDU4ecgVgQtFAtaUTei3QszfF91cNd",
"proofs": [
"2rG5M6dLDLD4qmz5g4nkgFpJuRTArcgQYK5mU3rN3MxzZH6EWBTJKbRduTHAWn46vhTDz52pVGLtWNqyLsuyTCiT"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIECgIICAAAAAEAAAAAC2FkbWluUHViS2V5AgAAACMzTkFqclVDQTdvbU5DM3kxY1hxRHpWUHpMbzNqWnptbm9GdgAAAAEAAAABaQEAAAAHYWRkRGF0YQAAAAIAAAADa2V5AAAABGRhdGEEAAAACWNhbGxlclN0cgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAJY2FsbGVyU3RyBQAAAAthZG1pblB1YktleQkAAAIAAAABAgAAABpPbmx5IGFkbWluIGNhbiBhZGQgZW50cmllcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAABGRhdGEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5gycIFw==",
"height": 1306945,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2fgkyEG9RbzKSHkXs7wUdhXhGZiW3s2ovViX6TExN5Ao
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | let callerStr = toBase58String(i.caller.bytes) |
---|
9 | 9 | | if ((callerStr != adminPubKey)) |
---|
10 | 10 | | then throw("Only admin can add entries") |
---|
11 | | - | else [BinaryEntry(key, data)] |
---|
| 11 | + | else [StringEntry(key, data)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let adminPubKey = "3NAjrUCA7omNC3y1cXqDzVPzLo3jZzmnoFv" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func addData (key,data) = { |
---|
8 | 8 | | let callerStr = toBase58String(i.caller.bytes) |
---|
9 | 9 | | if ((callerStr != adminPubKey)) |
---|
10 | 10 | | then throw("Only admin can add entries") |
---|
11 | | - | else [BinaryEntry(key, data)] |
---|
| 11 | + | else [StringEntry(key, data)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Verifier(tx) |
---|
16 | 16 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
17 | 17 | | |
---|