From 255c51f79bce1cda45df469dbd3a4cda63b1f801 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 4 Jun 2020 12:42:30 +0200 Subject: [PATCH] Rename to clearOriginalStorageCache everywhere --- packages/vm/lib/runTx.ts | 2 +- packages/vm/tests/api/state/stateManager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() })