aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/unit
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-02-07 03:28:40 +0800
committerJacob Evans <jacob@dekz.net>2018-02-07 03:34:22 +0800
commitdf8de7ff517ba1386671c658d402fa7436ff4f74 (patch)
tree99d9b9ef315d876dc1ae3e7bddc530767ea3c6f4 /packages/subproviders/test/unit
parent67d7540907b6467c4cdc6a23815ad152517b3328 (diff)
downloaddexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar.gz
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar.bz2
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar.lz
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar.xz
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.tar.zst
dexon-sol-tools-df8de7ff517ba1386671c658d402fa7436ff4f74.zip
Fixes
Rename to isFirstGetTransactionCount assign nextPrefixedHexNonce as a const
Diffstat (limited to 'packages/subproviders/test/unit')
-rw-r--r--packages/subproviders/test/unit/nonce_tracker_subprovider_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/subproviders/test/unit/nonce_tracker_subprovider_test.ts b/packages/subproviders/test/unit/nonce_tracker_subprovider_test.ts
index 738b8bc95..e98d9023c 100644
--- a/packages/subproviders/test/unit/nonce_tracker_subprovider_test.ts
+++ b/packages/subproviders/test/unit/nonce_tracker_subprovider_test.ts
@@ -38,13 +38,13 @@ describe('NonceTrackerSubprovider', () => {
'0x5bd428537f05f9830e93792f90ea6a3e2d1ee84952dd96edbae9f658f831ab13',
];
function createFixtureSubprovider() {
- let firstGetTransactionCount = true;
+ let isFirstGetTransactionCount = true;
const fixedBlockNumberAndTransactionCountProvider = new FixtureSubprovider({
eth_getBlockByNumber: '0x01',
eth_getTransactionCount: (data: any, next: any, end: any) => {
// For testing caching we return different results on the second call
- if (firstGetTransactionCount) {
- firstGetTransactionCount = false;
+ if (isFirstGetTransactionCount) {
+ isFirstGetTransactionCount = false;
end(null, '0x00');
} else {
end(null, '0x99');