Closed spazcoin closed 4 months ago
There is no universal way to run a call from root origin so there is no such command line can be implemented. Astar have sudo pallet so you can just modify the sudo key and use it
In this case, just launch a chopsticks chain with sudo key overriden, and use pjs apps to dispatch the call and see if it works.
I'm trying to test XCM governance proposals using Chopsticks but running into issues. I've cloned and compiled Chopsticks within GitBash on Windows. However, when I try to dry run it with an extrinsic I receive an Error message
Extrinsic: length less than remainder, expected at least 133, found 91
that I don't know how to overcome.I posted this question on StackExchange a week ago as well: https://substrate.stackexchange.com/questions/11352/dry-running-extrinsic-using-chopsticks-on-command-line-length-less-than-remaind
another example call that returns a similar error:
npx @acala-network/chopsticks@latest dry-run --config=configs/astar.yml --extrinsic=0x0b030a016d6f646c70792f747273727900000000000000000000000000000000000000003700000000000000000000000000000000000000d012d9cbb7ab7f7704000000000003010200c91f01007369626cd607000000000000000000000000000000000000000000000000000000
Trying to more closely follow your README.md examples, when I supply an
address
param then it will execute without that error. However, I'm trying to test governance extrinsics so I need to run them asroot
. In the Chopsticks UI, I see that you can dry-run an extrinsic using{"system":"Root"}
but that doesn't work on the command line. What's the correct command line call to run an extrinsic as root?Finally, for many chains I can run a local instance of Chopsticks, connect polkadot.js and then submit extrinsics in the Javascript console using the call below. However, it doesn't work for Astar because Astar doesn't have the
scheduler
pallet. Is there another syntax that can be used to submit extrinsics from Root on the Javascript console for chains that don't havescheduler
available?