From e17ace397cd5d0f4b24d3af868eef8ae55889456 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Tue, 6 Feb 2018 11:59:47 -0800 Subject: Move BlockParamLiteral to shared types package Also BlockParam --- packages/subproviders/src/subproviders/nonce_tracker.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'packages/subproviders') 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: -- cgit v1.2.3