Skip to content

Commit aa7ad95

Browse files
committed
fix inflating blocks
1 parent f0d4332 commit aa7ad95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/remix-simulator/src/vm-context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ export class VMContext {
371371
web3vm.setVM(vm)
372372
this.addBlock(genesisBlock, true)
373373
if (blocks.length > 0) blocks.splice(0, 1)
374-
blocks.forEach(block => {
375-
blockchain.putBlock(block)
374+
for (const block of blocks) {
375+
await blockchain.putBlock(block)
376376
this.addBlock(block, false, false, web3vm)
377-
})
377+
}
378378
return { vm, web3vm, stateManager, common, blocks }
379379
}
380380

0 commit comments

Comments
 (0)