pull/4422/head
filip mertens 11 months ago
parent 83066a422e
commit fbebb37d2d
  1. 2
      libs/remix-simulator/src/vm-context.ts

@ -245,7 +245,7 @@ class CustomEthersStateManager extends StateManagerCommonStorageDump {
} else {
const codeHash = accountData.codeHash === '0x0000000000000000000000000000000000000000000000000000000000000000' ? '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' : accountData.codeHash
account = Account.fromAccountData({
balance: BigInt(accountData.balance),
balance: BigInt(accountData.balance),
nonce: BigInt(accountData.nonce),
codeHash: toBuffer(codeHash)
// storageRoot: toBuffer([]), // we have to remove this in order to force the creation of the Trie in the local state.

Loading…
Cancel
Save