8
votes
Accepted
Substrate Meta Transaction
The signAndSend in the JS API is actually a process you can split into 2 parts: .signAsync(...) and .send(...), internally the JS API does exactly that when calling signAndSend(...).
However even when ...
7
votes
Accepted
How would someone go without the SUDO pallet?
They use the Democracy pallet. This pallet also offers you the possibility to execute sudo calls.
See here.
6
votes
Render Sudo without a runtime upgrade
The suggestion of setting the Sudo key to something like the address with all 1's sounds reasonable, although I would suggest in the long term to remove the pallet using a runtime upgrade if you ...
4
votes
Deposit on registrar.forceRegister(who,deposit,id,genesisHead,validationCode)?
After going around this for some time, I realized a couple of things that might be worth sharing.
TL;DR -> when using Root account, deposit can be anything, including 0.
The registrar code clearly ...
4
votes
Accepted
How to create pallet errors for sudo that show up on the Polkadot JS apps interface?
I'm afraid at the moment the UI does not show these errors. This seems to be a UX fail but I am hopeful that we can fix it. This is the issue to watch:
https://github.com/polkadot-js/apps/issues/3072
(...
4
votes
Sudo option is missing
When the pallet doesn't show, it means it is not included in the runtime.
Since the Polkadot repo is meant to support the live/production Polkadot network, this module is not included in the runtime ...
4
votes
Accepted
Why is remark not shown when executed with Root?
When you wrap a call, only the root is displayed, this means -
utility.batch([ system.remark(...), ... ]) will show the batch transaction under extrinsics
sudo.sudo(system.remark(...)) will show the ...
3
votes
Accepted
How To Remove The Sudo Pallet Safely
You can follow this PR.
https://github.com/darwinia-network/darwinia/pull/1173
This is how we handle it on our mainnet.
3
votes
How Polkadot transition Sudo into On chain governance?
One of the key features that Substrate is build around is the ability to perform runtime upgrades. This feature allows for the logic of a blockchain to change over time. Polkadot and Kusama both used ...
2
votes
Why is remark not shown when executed with Root?
I think you should use remark_with_event. Otherwise, you can not see the event.
Can this answer your question?
2
votes
sudo(bridgeRococoGrandpa.setOwner()) call resulting in BadOrigin error
I am not sure what specific pallet you are calling, but likely the error here is due to the way the extrinsic is designed.
The extrinsic in question probably has:
// Check the origin is from an ...
2
votes
Accepted
What is the intended purpose of `sudo_as` from the sudo pallet?
Yes Sudo::sudo_as can be used to impersonate any other account of type Signed whereas Sudo::sudo provides Root.
When I would like to stop this dispatch from being executed, I could use the ...
2
votes
Accepted
ensure_root in ink!
This is not possible because a contract assumes to be always called by a another address. In order for that to work we would need to add this functionality to pallet-contracts. We would need a host ...
2
votes
How To Remove The Sudo Pallet Safely
There is currently no call in the sudo pallet to set the key to None.
Undeploying the pallet is therefore the only non-hacky secure solution.
There are other ways, like setting the key to 0x000... or ...
2
votes
polkadot explorer getting stuck while using utility and sudo pallet from extrinsics
This is a performance issue. I've encountered it before as well. What I did was open a new browser and try using different wallets. It appears that signing a WASM significantly affects performance.
2
votes
Sudo option is missing
git cherrypick this commit and read the commit comment for the step to fixup the Cargo.toml after:
https://github.com/paritytech/polkadot/commit/791c8b8f9e6fe00b631f2cace0d6d65151487eb4
That will ...
1
vote
How to use `setStorage` in Polkadot JS Apps? Entries cannot be decoded after setting
The key is correct. The inquiry revolves around the value. How did you get the 0xdeadbeef value? You can check it against the original value to ensure the byte lengths match. Additionally, I recommend ...
1
vote
Sudo account reward remainder
RewardRemainder need an object that implement OnUnbalanced.
https://github.com/paritytech/polkadot-sdk/blob/96ab6869bafb06352b282576a6395aec8e9f2705/substrate/frame/staking/src/pallet/mod.rs#L164
We ...
1
vote
ensure_root in ink!
UPDATE: A PR has been merged to master that allows Root to call contracts and adds the caller_is_root() -> bool method.
You can then use this to build your custom ensure_root.
1
vote
What root dispatches are absolutely necessary to run a parachain?
You can write a call if the matched user calls it, then dispatch a parachain_system::Call::<T>::authorize_upgrade(code_hash); call.
And one thing I need to point out. Being able to call the ...
1
vote
Accepted
How to force runtime upgrades only after an enactment period of three months with the sudo pallet?
What transactions should be filtered, so that this rule can't be avoided by the sudo user?
You do not force sudo to do anything. Sudo is the force.
Sudo::sudo results in Root and can arbitrarily ...
1
vote
Accepted
Connect a parachain to a custom relay chain without sudo
The tutorial says "using the sudo pallet".
If you don't have the sudo pallet, you need to add it, or create a different pallet which allows for parachains to be registered in a way that ...
1
vote
Accepted
Sudo option is not showing up on PolkadotUI - Substrate
Only when the PolkadotApps detect the sudo key in your wallet, the sudo component will be loaded.
After some discussions.
I found the Substrate version is quite old. If you open your browser console, ...
1
vote
parachainSystem.OverlappingUpgrades
Xavier is right, and I'll show you how to kill it.
Get the storage key from chain state
Then kill it by system.killStorage (sudo or governance)
1
vote
parachainSystem.OverlappingUpgrades
It looks like you are trying to do this multiple times.
Sometimes, I make mistakes on my testnet (upload wrong WASM). Then I use sudo to kill the storage.
Kill the ParachainSystem::...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sudo × 22pallet × 5
runtime-upgrade × 5
parachain × 4
polkadot-js × 4
polkadot × 3
rococo × 2
upgrade × 2
key × 2
democracy × 2
kusama × 1
ink × 1
blockchain × 1
extrinsic × 1
xcm × 1
transactions × 1
substrate-node-template × 1
account × 1
storage × 1
substrate-node × 1
genesis × 1
hrmp × 1
scale-codec × 1
fee × 1
root × 1