tx · Cz4G78YdaGbaCJaPjgNpA26PUJbwbwvprfkSrhqoDNHa

3MrDW7XqqnaQxsVudgSYtybSEEupvkFbwyG:  -0.01000000 Waves

2019.07.30 22:59 [609281] smart account 3MrDW7XqqnaQxsVudgSYtybSEEupvkFbwyG > SELF 0.00000000 Waves

{ "type": 13, "id": "Cz4G78YdaGbaCJaPjgNpA26PUJbwbwvprfkSrhqoDNHa", "fee": 1000000, "feeAssetId": null, "timestamp": 1564516793020, "version": 1, "sender": "3MrDW7XqqnaQxsVudgSYtybSEEupvkFbwyG", "senderPublicKey": "3A9yFs4fmc6YHv353SjQ6GitXerEc1uTbbz2Vd13L8cm", "proofs": [ "g7UcAGHEkz1kuYYyU6aDnqZJKbQTBLzRXbFSpwmfKEs1WUkPYaH5nBfQVy59MTWHehzJV9yYiQLq5YwWWmHENHq" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAPZGF0YVRyYW5zYWN0aW9uBAAAAAZzZW5kZXIIBQAAAA9kYXRhVHJhbnNhY3Rpb24AAAAGc2VuZGVyBAAAABhnZXRFbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQkAAlgAAAABCAUAAAAGc2VuZGVyAAAABWJ5dGVzAwkAAAAAAAACBQAAABhnZXRFbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkBAAAADWlzVmFsaWRTZW5kZXIAAAABBQAAAAFkBunWsW4=", "chainId": 84, "height": 609281, "spentComplexity": 0 } View: original | compacted Prev: none Next: 8rL3Lu9GkPjj59XARknfxx49ncDCqD4tUG8Gg7bWAoUm Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let EMTPYSTRING = ""
5+
6+func getStringFromKey (key) = match getString(this, key) {
7+ case str: String =>
8+ str
9+ case _ =>
10+ EMTPYSTRING
11+}
12+
13+
14+func isValidSender (dataTransaction) = {
15+ let sender = dataTransaction.sender
16+ let getEntryForSenderAddress = getStringFromKey(toBase58String(sender.bytes))
17+ if ((getEntryForSenderAddress == EMTPYSTRING))
18+ then false
19+ else true
20+ }
21+
22+
23+
24+@Verifier(tx)
25+func verify () = match tx {
26+ case d: DataTransaction =>
27+ isValidSender(d)
28+ case _ =>
29+ true
30+}
31+

github/deemru/w8io/169f3d6 
16.12 ms