Attempt to upgrade validation function while existing upgrade pending

I stuck with this error. Can anyone have idea how fix it?

enter image description here

2 Answers 2


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::PendingValidationCode storage.

  • How to kill the storage?
    – rust.dev
    Commented Oct 29, 2022 at 18:58
  • 1
    Extrinsic -> system -> killstorage. The default key is 0x45323df7cc47150b3930e2666b0aa31390d171f8401887cf06fb43a732994c32. If you modified your pallet name, then you should calculate the storage key youself.
    – AurevoirXavier
    Commented Oct 30, 2022 at 8:24

Xavier is right, and I'll show you how to kill it.

  1. Get the storage key from chain state enter image description here
  2. Then kill it by system.killStorage (sudo or governance) enter image description here

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.