diff --git a/packages/vm/lib/runTx.ts b/packages/vm/lib/runTx.ts index 9e64a034c2a..92d416cac89 100644 --- a/packages/vm/lib/runTx.ts +++ b/packages/vm/lib/runTx.ts @@ -140,7 +140,7 @@ async function _runTx(this: VM, opts: RunTxOpts): Promise { value: tx.value, data: tx.data, }) - state._clearOriginalStorageCache() + state.clearOriginalStorageCache() const evm = new EVM(this, txContext, block) const results = (await evm.executeMessage(message)) as RunTxResult diff --git a/packages/vm/tests/api/state/stateManager.js b/packages/vm/tests/api/state/stateManager.js index d924947a9ac..c87e593d35f 100644 --- a/packages/vm/tests/api/state/stateManager.js +++ b/packages/vm/tests/api/state/stateManager.js @@ -269,7 +269,7 @@ tape('Original storage cache', async t => { const origRes = await stateManager.getOriginalContractStorage(addressBuffer, key) st.deepEqual(origRes, Buffer.alloc(0)) - stateManager._clearOriginalStorageCache() + stateManager.clearOriginalStorageCache() st.end() })