Skip to content

Commit

Permalink
Rename to clearOriginalStorageCache everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Jun 4, 2020
1 parent fb73c97 commit 255c51f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vm/lib/runTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async function _runTx(this: VM, opts: RunTxOpts): Promise<RunTxResult> {
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

Expand Down
2 changes: 1 addition & 1 deletion packages/vm/tests/api/state/stateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 255c51f

Please sign in to comment.