tx · HVeHGdDuDQXtyyCv9y2KFbXb6rvf431FhYXtnbz899Hi
3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves
2019.10.26 15:26 [737101] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{
"type": 13,
"id": "HVeHGdDuDQXtyyCv9y2KFbXb6rvf431FhYXtnbz899Hi",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572092787552,
"version": 1,
"sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA",
"senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF",
"proofs": [
"5RuaAmxcMsma6JZbESCHiA1ajAGRcCxz4rjCs3eDuG8uXYLxqMiiywcPdu2pyGyV6bPtcACgBqLhy4FP71RvmTy7"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAIRmFrZU5vdGUCAAAABERlbnkEAAAABUFkZHIxAgAAACMzTjJ0d2o4ZVQ2S1NzbkFuOXBtQ2c4MWZqMnpNd25EZW1VQQQAAAAFQWRkcjICAAAAIzNNcnFCYWVyZzhpRGJjZmI2UFgxN3FReFNlUmV2QXUzSEtCBAAAAAVBZGRyMwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAES2V5MQIAAAAGTXlLZXkxBAAAAAZOZXdWYXIJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABUFkZHIxBQAAAARLZXkxBAAAAAdOZXdWYXIyCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAVBZGRyMwUAAAAES2V5MQMJAAAAAAAAAgUAAAANU2VuZGVyQWRkcmVzcwUAAAAFQWRkcjIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGtleXgFAAAABk5ld1ZhcgUAAAADbmlsCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAhGYWtlTm90ZQUAAAADbmlsAAAAAPHqYbM=",
"chainId": 84,
"height": 737101,
"spentComplexity": 0
}
View: original | compacted
Prev: 3DCxe4w12NVfDHsSFZFGVShk9qTW4Dm2diqA34eMjomE
Next: 8XvPz115AK5N1sfMeoHQR4n2mTrGXbtMwC3UVJEFqLsr
Diff:
Old | New | | Differences |
---|
7 | 7 | | func WN (keyx,note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let FakeNote = "Deny" |
---|
10 | | - | if ((SenderAddress == "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")) |
---|
11 | | - | then WriteSet([DataEntry(keyx, note)]) |
---|
| 10 | + | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" |
---|
| 11 | + | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
| 12 | + | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
| 13 | + | let Key1 = "MyKey1" |
---|
| 14 | + | let NewVar = extract(getString(addressFromStringValue(Addr1), Key1)) |
---|
| 15 | + | let NewVar2 = getStringValue(Addr3, Key1) |
---|
| 16 | + | if ((SenderAddress == Addr2)) |
---|
| 17 | + | then WriteSet([DataEntry(keyx, NewVar)]) |
---|
12 | 18 | | else WriteSet([DataEntry(SenderAddress, FakeNote)]) |
---|
13 | 19 | | } |
---|
14 | 20 | | |
---|
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 WN (keyx,note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let FakeNote = "Deny" |
---|
10 | | - | if ((SenderAddress == "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")) |
---|
11 | | - | then WriteSet([DataEntry(keyx, note)]) |
---|
| 10 | + | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" |
---|
| 11 | + | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
| 12 | + | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
| 13 | + | let Key1 = "MyKey1" |
---|
| 14 | + | let NewVar = extract(getString(addressFromStringValue(Addr1), Key1)) |
---|
| 15 | + | let NewVar2 = getStringValue(Addr3, Key1) |
---|
| 16 | + | if ((SenderAddress == Addr2)) |
---|
| 17 | + | then WriteSet([DataEntry(keyx, NewVar)]) |
---|
12 | 18 | | else WriteSet([DataEntry(SenderAddress, FakeNote)]) |
---|
13 | 19 | | } |
---|
14 | 20 | | |
---|
15 | 21 | | |
---|