Skip to content

Commit a08d58e

Browse files
committed
fix linting errors
1 parent 71e5bf2 commit a08d58e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/state/stateManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ proto.setStateRoot = function (stateRoot, cb) {
399399
if (stateRoot === self._trie.EMPTY_TRIE_ROOT) {
400400
self._trie.root = stateRoot
401401
self._cache.clear()
402-
self._storageTries = {};
402+
self._storageTries = {}
403403
return cb()
404404
}
405405
self._trie.checkRoot(stateRoot, function (err, hasRoot) {
@@ -408,7 +408,7 @@ proto.setStateRoot = function (stateRoot, cb) {
408408
} else {
409409
self._trie.root = stateRoot
410410
self._cache.clear()
411-
self._storageTries = {};
411+
self._storageTries = {}
412412
cb()
413413
}
414414
})

tests/api/state/stateManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ tape('StateManager', (t) => {
5050

5151
// test contract storage cache
5252
await checkpoint()
53-
const key = Buffer.from("0x1234");
54-
const value = Buffer.from("0x1234");
55-
await putContractStorage(addressBuffer, key, value);
53+
const key = Buffer.from('0x1234')
54+
const value = Buffer.from('0x1234')
55+
await putContractStorage(addressBuffer, key, value)
5656

5757
const contract0 = await getContractStorage(addressBuffer, key)
5858
st.equal(contract0.toString('hex'), value.toString('hex'), 'contract key\'s value is set in the _storageTries cache')

0 commit comments

Comments
 (0)