2

I have integrated the democracy, collective, scheduler, and treasury pallet into my chain. Everything is working fine just during the end step when the proposal is executing it is giving me the bad origin error. Please let me know if you can suggest something?enter image description here

4
  • Can you please share more details about what the proposal is doing, and how you have set up the end to end test here?
    – Shawn Tabrizi
    May 20, 2022 at 20:49
  • In the proposal, we are just transferring the balance from one account to another.
    – Pankaj
    May 21, 2022 at 14:15
  • 1
    In this case, you probably need to use force_transfer, instead of transfer. As mentioned, if you don't share more specific details, I can't help you figure out the issue.
    – Shawn Tabrizi
    May 21, 2022 at 16:29
  • Do you have a WS address we can connect to along with the Github repo? TY.
    – Bruno
    May 27, 2022 at 16:49

1 Answer 1

2

As Shawn suggested, for proposals that do transfers, you would need to use forceTransfer which executes from the root origin.

(The normal transfer operates from the signer account and is not meant for these operations)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.