Skip to content

Commit

Permalink
override wasm before importing storage (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
sander2 authored Feb 21, 2023
1 parent f57d89f commit f557879
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/chopsticks/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

0 comments on commit f557879

Please sign in to comment.