aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-02-07 03:59:47 +0800
committerJacob Evans <jacob@dekz.net>2018-02-07 05:17:14 +0800
commite17ace397cd5d0f4b24d3af868eef8ae55889456 (patch)
tree19293a228c6efbd34e8e4e56e85b3a48683d921c /packages/subproviders
parentdf8de7ff517ba1386671c658d402fa7436ff4f74 (diff)
downloaddexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar.gz
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar.bz2
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar.lz
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar.xz
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.tar.zst
dexon-0x-contracts-e17ace397cd5d0f4b24d3af868eef8ae55889456.zip
Move BlockParamLiteral to shared types package
Also BlockParam
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/src/subproviders/nonce_tracker.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/subproviders/src/subproviders/nonce_tracker.ts b/packages/subproviders/src/subproviders/nonce_tracker.ts
index 6c1d54882..53ee025c9 100644
--- a/packages/subproviders/src/subproviders/nonce_tracker.ts
+++ b/packages/subproviders/src/subproviders/nonce_tracker.ts
@@ -6,12 +6,7 @@ import providerEngineUtils = require('web3-provider-engine/util/rpc-cache-utils'
import { BlockParamLiteral } from '@0xproject/types';
-import {
- ErrorCallback,
- JSONRPCPayload,
- NonceSubproviderErrors,
- OptionalNextCallback,
-} from '../types';
+import { ErrorCallback, JSONRPCPayload, NonceSubproviderErrors, OptionalNextCallback } from '../types';
import { Subprovider } from './subprovider';
@@ -36,7 +31,10 @@ export class NonceTrackerSubprovider extends Subprovider {
return address;
case 'eth_sendRawTransaction':
const transaction = NonceTrackerSubprovider._reconstructTransaction(payload);
- const addressRaw = transaction.getSenderAddress().toString('hex').toLowerCase();
+ const addressRaw = transaction
+ .getSenderAddress()
+ .toString('hex')
+ .toLowerCase();
address = `0x${addressRaw}`;
return address;
default: