From 614abdd92017b5b6e965c3c38ed1e09d05283858 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Wed, 31 Oct 2018 13:04:21 -0230 Subject: [PATCH] Rename getAccountsPure to _getAccountsPure. --- lib/stateManager.js | 4 ++-- tests/api/stateManager.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/stateManager.js b/lib/stateManager.js index a6e5df3ab7..d4e6807188 100644 --- a/lib/stateManager.js +++ b/lib/stateManager.js @@ -40,7 +40,7 @@ proto.getAccount = function (address, cb) { this.cache.getOrLoad(address, cb) } -proto.getAccountPure = function (address, cb) { +proto._getAccountPure = function (address, cb) { const self = this const cachedAccount = this.cache.get(address) @@ -308,7 +308,7 @@ proto.accountIsEmpty = function (address, getAccountWithoutLoad, cb) { } var self = this - var getAccountCall = getAccountWithoutLoad ? self.getAccountPure : self.getAccount + var getAccountCall = getAccountWithoutLoad ? self._getAccountPure : self.getAccount getAccountCall.bind(this)(address, function (err, account) { if (err) { diff --git a/tests/api/stateManager.js b/tests/api/stateManager.js index 6890a5d84d..45e09b840a 100644 --- a/tests/api/stateManager.js +++ b/tests/api/stateManager.js @@ -4,7 +4,7 @@ const util = require('ethereumjs-util') const StateManager = require('../../lib/stateManager') const { createAccount } = require('./utils') -tape.only('StateManager', (t) => { +tape('StateManager', (t) => { t.test('should instantiate', (st) => { const stateManager = new StateManager() @@ -53,7 +53,7 @@ tape.only('StateManager', (t) => { account ) - let res = await promisify(stateManager.getAccountPure.bind(stateManager))( + let res = await promisify(stateManager._getAccountPure.bind(stateManager))( 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' ) @@ -61,7 +61,7 @@ tape.only('StateManager', (t) => { stateManager.cache.clear() - res = await promisify(stateManager.getAccountPure.bind(stateManager))( + res = await promisify(stateManager._getAccountPure.bind(stateManager))( 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' )