tx · A25pDizZVFNF8t5QzmF33BrzbqqKJCZLvuxMpDS7nRVX
3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp: -0.00100000 Waves
2024.11.12 00:13 [3367322] smart account 3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp > SELF 0.00000000 Waves
{
"type": 13,
"id": "A25pDizZVFNF8t5QzmF33BrzbqqKJCZLvuxMpDS7nRVX",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731359602997,
"version": 1,
"sender": "3MzgLbskN82suZgkmqTvzQxDtZfjQfX1DLp",
"senderPublicKey": "B5p5JF1Hn7k2YwGxQxgFre8bM5pd7N2c6wPdyKdLzzd6",
"proofs": [
"4trrbswMMYcwMxCp3qniLo34FAZpMnhnMaxY9DPCTVuCEmtDCULvjhMXCEqQwfg6v8ThFwdMqLExHuLwoJm2y4Ra"
],
"script": "base64:CAIECAISAAABAWkBEmFsbG93U2NyaXB0UmVtb3ZhbAAED211bHRpc2lnQWRkcmVzcwkBBXZhbHVlAQkApggBAhVZT1VSX01VTFRJU0lHX0FERFJFU1MDCQECIT0CCAUBaQZjYWxsZXIFD211bHRpc2lnQWRkcmVzcwkAAgECG09ubHkgbXVsdGlzaWcgY2FuIGNhbGwgdGhpcwkAzAgCCQEMQm9vbGVhbkVudHJ5AgIUYWxsb3dfc2NyaXB0X3JlbW92YWwGBQNuaWwAXaxdCQ==",
"chainId": 84,
"height": 3367322,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AFfBiZSRuhTTKBpXHj2DN1UCXccnAuVQ5KusNjHjuc8L
Next: none
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func allowScriptRemoval () = { |
---|
8 | | - | let callerAddress = toString(i.caller) |
---|
9 | | - | if ((size(i.payments) == 0)) |
---|
10 | | - | then [BooleanEntry((callerAddress + "_canRemoveScript"), true), BooleanEntry("script_disabled", true)] |
---|
11 | | - | else throw("No payments needed") |
---|
| 8 | + | let multisigAddress = value(addressFromString("YOUR_MULTISIG_ADDRESS")) |
---|
| 9 | + | if ((i.caller != multisigAddress)) |
---|
| 10 | + | then throw("Only multisig can call this") |
---|
| 11 | + | else [BooleanEntry("allow_script_removal", true)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func allowScriptRemoval () = { |
---|
8 | | - | let callerAddress = toString(i.caller) |
---|
9 | | - | if ((size(i.payments) == 0)) |
---|
10 | | - | then [BooleanEntry((callerAddress + "_canRemoveScript"), true), BooleanEntry("script_disabled", true)] |
---|
11 | | - | else throw("No payments needed") |
---|
| 8 | + | let multisigAddress = value(addressFromString("YOUR_MULTISIG_ADDRESS")) |
---|
| 9 | + | if ((i.caller != multisigAddress)) |
---|
| 10 | + | then throw("Only multisig can call this") |
---|
| 11 | + | else [BooleanEntry("allow_script_removal", true)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|