Unfortunately, I could not find how to add unchecked weight to a call via Polkadot.js, e.g. within signAndSend
or when preparing the unsigned extrinsic. Even in the cookbook example for runtime upgrades, it is not mentioned.
I am trying to fix the following error when calling api.tx.configuration.setValidationUpgradeDelay(5)
with sudo by adding unchecked weight:
/app/node_modules/@polkadot/rpc-provider/coder/index.cjs:76
throw new _error.default(fmtMessage, code, data);
^
RpcError: 1010: Invalid Transaction: Transaction would exhaust the block limits
sudo.sudoUncheckedWeight
as opposed tosudo.sudo