Revert moving formatUtils into utils

This commit is contained in:
fragosti
2018-07-06 10:23:24 -07:00
parent 188bf000b7
commit acfbba5476
7 changed files with 43 additions and 59 deletions

View File

@@ -1,5 +1,4 @@
import { Web3Wrapper, marshaller } from '@0xproject/web3-wrapper';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import { JSONRPCRequestPayload, Provider } from 'ethereum-types';
import { Callback, ErrorCallback } from '../types';
@@ -52,8 +51,7 @@ export class SignerSubprovider extends Subprovider {
case 'eth_sendTransaction':
const [txParams] = payload.params;
try {
const txData = marshaller.unmarshalTxData(txParams);
const txHash = await this._web3Wrapper.sendTransactionAsync(txData);
const txHash = await this._web3Wrapper.sendTransactionAsync(txParams);
end(null, txHash);
} catch (err) {
end(err);