tx · HKfeQf9ng2DzM9iaxzL7nV5yUqmXDcRuPgZdaxH2fy4q
3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E: -0.00100000 Waves
2024.11.11 05:31 [3366186] smart account 3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E > SELF 0.00000000 Waves
{
"type": 13,
"id": "HKfeQf9ng2DzM9iaxzL7nV5yUqmXDcRuPgZdaxH2fy4q",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731292392111,
"version": 1,
"sender": "3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E",
"senderPublicKey": "4Hyg7NjV4cswejcnGeMvk6x68P2RLt9Y1ontHkWtTcEQ",
"proofs": [
"3R1qZrhHbTvsDb1iNRLZuaGDf5tc7qUojyLKvR1Mcjog32b7PKScb7bFQi9tiLg5JAsEhMyp5qUHmmSkHRJGnJ7v"
],
"script": "base64:BgIECAISAAABAWkBDW51bGxpZnlTY3JpcHQABA10YXJnZXRBZGRyZXNzCQEHQWRkcmVzcwEBGgFUmcdFrQw1qSNbFgeZ6tW41ICzXwdjp0IVBAhzY3JpcHRUeAkA/AcEBQ10YXJnZXRBZGRyZXNzAglzZXRTY3JpcHQJAMwIAgUEdW5pdAUDbmlsBQNuaWwDCQAAAgUIc2NyaXB0VHgFCHNjcmlwdFR4BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4Al1lT0w==",
"chainId": 84,
"height": 3366186,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9gcgChPJQkvHWwLEuSx5idGLekNyiGfZDyfYaGNkQ95E
Next: 592EgoazUHqTCDJ6KT2wFcyjdnbXP2r1JnhAG3kbqTTF
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func setAccountScript () = { |
---|
8 | | - | let checkCaller = (toString(i.caller) == "3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx") |
---|
9 | | - | if ((checkCaller == checkCaller)) |
---|
10 | | - | then if (checkCaller) |
---|
11 | | - | then [ScriptTransfer(i.caller, 0, unit)] |
---|
12 | | - | else throw("Not authorized") |
---|
| 7 | + | func nullifyScript () = { |
---|
| 8 | + | let targetAddress = Address(base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx') |
---|
| 9 | + | let scriptTx = invoke(targetAddress, "setScript", [unit], nil) |
---|
| 10 | + | if ((scriptTx == scriptTx)) |
---|
| 11 | + | then nil |
---|
13 | 12 | | else throw("Strict value is not equal to itself.") |
---|
14 | 13 | | } |
---|
15 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func setAccountScript () = { |
---|
8 | | - | let checkCaller = (toString(i.caller) == "3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx") |
---|
9 | | - | if ((checkCaller == checkCaller)) |
---|
10 | | - | then if (checkCaller) |
---|
11 | | - | then [ScriptTransfer(i.caller, 0, unit)] |
---|
12 | | - | else throw("Not authorized") |
---|
| 7 | + | func nullifyScript () = { |
---|
| 8 | + | let targetAddress = Address(base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx') |
---|
| 9 | + | let scriptTx = invoke(targetAddress, "setScript", [unit], nil) |
---|
| 10 | + | if ((scriptTx == scriptTx)) |
---|
| 11 | + | then nil |
---|
13 | 12 | | else throw("Strict value is not equal to itself.") |
---|
14 | 13 | | } |
---|
15 | 14 | | |
---|
16 | 15 | | |
---|