Skip to content

Commit 7de4dd9

Browse files
yann300Aniket-Engg
authored andcommitted
fix dumping state with latest tx
1 parent be22b23 commit 7de4dd9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/remix-ide/src/blockchain/blockchain.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,7 @@ export class Blockchain extends Plugin {
10241024
let stateDetails = await this.call('fileManager', 'readFile', provider.config.statePath)
10251025
stateDetails = JSON.parse(stateDetails)
10261026
state = JSON.parse(state)
1027-
state['stateName'] = stateDetails.stateName
1028-
state['forkName'] = stateDetails.forkName
1029-
state['savingTimestamp'] = stateDetails.savingTimestamp
1030-
state = JSON.stringify(state, null, 2)
1027+
state = JSON.stringify({...stateDetails, ...(state as any)}, null, 2)
10311028
}
10321029
this.call('fileManager', 'writeFile', provider.config.statePath, state)
10331030
} else if (isBasicVMState && !isForkedRpcState && !isForkedRpcState) {

0 commit comments

Comments
 (0)