tx · ERnjHYdJx2URMpk9S5shHb6fHkvuLQpiGYS7t5hkHqeQ
3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE: -0.01000000 Waves
2022.10.17 14:17 [2276303] smart account 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE > SELF 0.00000000 Waves
{
"type": 13,
"id": "ERnjHYdJx2URMpk9S5shHb6fHkvuLQpiGYS7t5hkHqeQ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1666005494651,
"version": 2,
"chainId": 84,
"sender": "3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE",
"senderPublicKey": "3nPFqmiV1yaNvmSrQdE1QHbTAF8bfJB1GjbegBWbNNCK",
"proofs": [
"3dGiw5jxjympuJBXvRTWg4iNH2RyMnefqHxvhFc8vYYx9tkrKeHm3pS91X3kpFkzop7gzNREAWj43hN9huKmNwCf"
],
"script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgQKAggIEgMKAQgAAAACAQAAAAtrZXlfYWRkcmVzcwAAAAEAAAAEbmFtZQkAASwAAAACAgAAAAhhZGRyZXNzXwUAAAAEbmFtZQEAAAAHaXNPd25lcgAAAAEAAAADaW52CQAAAAAAAAIIBQAAAANpbnYAAAAGY2FsbGVyBQAAAAR0aGlzAAAAAwAAAANpbnYBAAAAEXN1cHBvcnRzSW50ZXJmYWNlAAAAAQAAAAtpbnRlcmZhY2VJZAkABRQAAAACBQAAAANuaWwJAAAAAAAAAgUAAAALaW50ZXJmYWNlSWQCAAAABGFkZHIAAAADaW52AQAAAAdzZXRBZGRyAAAAAgAAAARuYW1lAAAAB2FkZHJlc3MDCQEAAAABIQAAAAEJAQAAAAdpc093bmVyAAAAAQUAAAADaW52CQAAAgAAAAECAAAAEVBlcm1pc3Npb24gZGVuaWVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAtrZXlfYWRkcmVzcwAAAAEFAAAABG5hbWUFAAAAB2FkZHJlc3MFAAAAA25pbAAAAANpbnYBAAAABGFkZHIAAAABAAAABG5hbWUJAAUUAAAAAgUAAAADbmlsCQAEHQAAAAIFAAAABHRoaXMJAQAAAAtrZXlfYWRkcmVzcwAAAAEFAAAABG5hbWUAAAAAaT+PKg==",
"height": 2276303,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8V7VbH6Nhs1TYYL2AqyAUbFMptWBL85EYBawu8rvKvHd
Next: 7T3vQ6rekucZZVuT8UBsCj2rZsJqi1bzpE3wMMwsS7oB
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func a (b) = ("address_" + b) |
---|
4 | 5 | | |
---|
5 | 6 | | |
---|
6 | | - | @Callable(a) |
---|
7 | | - | func supportsInterface (b) = $Tuple2(nil, (b == "addr")) |
---|
| 7 | + | func c (d) = (d.caller == this) |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | @Callable(d) |
---|
| 11 | + | func supportsInterface (e) = $Tuple2(nil, (e == "addr")) |
---|
8 | 12 | | |
---|
9 | 13 | | |
---|
10 | 14 | | |
---|
11 | | - | @Callable(a) |
---|
12 | | - | func addr (c) = $Tuple2(nil, "3NCUSxFG35TxkPL9zvrVuLdzE7fgAJZBYnT") |
---|
| 15 | + | @Callable(d) |
---|
| 16 | + | func setAddr (b,f) = if (!(c(d))) |
---|
| 17 | + | then throw("Permission denied") |
---|
| 18 | + | else [StringEntry(a(b), f)] |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(d) |
---|
| 23 | + | func addr (b) = $Tuple2(nil, getString(this, a(b))) |
---|
13 | 24 | | |
---|
14 | 25 | | |
---|