diff --git a/packages/chopsticks/src/setup.ts b/packages/chopsticks/src/setup.ts index e66ac2b0..70d8243d 100644 --- a/packages/chopsticks/src/setup.ts +++ b/packages/chopsticks/src/setup.ts @@ -76,8 +76,10 @@ export const setup = async (argv: Config) => { if (argv.timestamp) await timeTravel(chain, argv.timestamp) - await importStorage(chain, argv['import-storage']) + // override wasm before importing storage, in case new pallets have been + // added that have storage imports await overrideWasm(chain, argv['wasm-override']) + await importStorage(chain, argv['import-storage']) return { chain, api, ws: provider } }