aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-17 11:46:34 +0800
committerkumavis <aaron@kumavis.me>2018-05-17 11:46:34 +0800
commit088d7930e0895ef1802823c5fc843dd1c19b9661 (patch)
treea2aed8b980fa44254121021d0529169369d77992 /test
parent708422432c634ffbd4c73388f980c43f766b3355 (diff)
downloadtangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar.gz
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar.bz2
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar.lz
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar.xz
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.tar.zst
tangerine-wallet-browser-088d7930e0895ef1802823c5fc843dd1c19b9661.zip
network - create provider and block-tracker via json-rpc-engine
Diffstat (limited to 'test')
-rw-r--r--test/unit/nonce-tracker-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/nonce-tracker-test.js b/test/unit/nonce-tracker-test.js
index cf26945d3..b9e6a5947 100644
--- a/test/unit/nonce-tracker-test.js
+++ b/test/unit/nonce-tracker-test.js
@@ -226,14 +226,14 @@ function generateNonceTrackerWith (pending, confirmed, providerStub = '0x0') {
providerResultStub.result = providerStub
const provider = {
sendAsync: (_, cb) => { cb(undefined, providerResultStub) },
- _blockTracker: {
- getCurrentBlock: () => '0x11b568',
- },
+ }
+ const blockTracker = {
+ getCurrentBlock: () => '0x11b568',
}
return new NonceTracker({
provider,
+ blockTracker,
getPendingTransactions,
getConfirmedTransactions,
})
}
-