Skip to content

Commit 614abdd

Browse files
committed
Rename getAccountsPure to _getAccountsPure.
1 parent 6b3bf6e commit 614abdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/stateManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ proto.getAccount = function (address, cb) {
4040
this.cache.getOrLoad(address, cb)
4141
}
4242

43-
proto.getAccountPure = function (address, cb) {
43+
proto._getAccountPure = function (address, cb) {
4444
const self = this
4545
const cachedAccount = this.cache.get(address)
4646

@@ -308,7 +308,7 @@ proto.accountIsEmpty = function (address, getAccountWithoutLoad, cb) {
308308
}
309309

310310
var self = this
311-
var getAccountCall = getAccountWithoutLoad ? self.getAccountPure : self.getAccount
311+
var getAccountCall = getAccountWithoutLoad ? self._getAccountPure : self.getAccount
312312

313313
getAccountCall.bind(this)(address, function (err, account) {
314314
if (err) {

tests/api/stateManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const util = require('ethereumjs-util')
44
const StateManager = require('../../lib/stateManager')
55
const { createAccount } = require('./utils')
66

7-
tape.only('StateManager', (t) => {
7+
tape('StateManager', (t) => {
88
t.test('should instantiate', (st) => {
99
const stateManager = new StateManager()
1010

@@ -53,15 +53,15 @@ tape.only('StateManager', (t) => {
5353
account
5454
)
5555

56-
let res = await promisify(stateManager.getAccountPure.bind(stateManager))(
56+
let res = await promisify(stateManager._getAccountPure.bind(stateManager))(
5757
'a94f5374fce5edbc8e2a8697c15331677e6ebf0b'
5858
)
5959

6060
st.equal(res.balance.toString('hex'), 'fff384')
6161

6262
stateManager.cache.clear()
6363

64-
res = await promisify(stateManager.getAccountPure.bind(stateManager))(
64+
res = await promisify(stateManager._getAccountPure.bind(stateManager))(
6565
'a94f5374fce5edbc8e2a8697c15331677e6ebf0b'
6666
)
6767

0 commit comments

Comments
 (0)