aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-07-07 02:46:03 +0800
committerGitHub <noreply@github.com>2018-07-07 02:46:03 +0800
commitc4ab5bc65333204e7cf712e3330406120f163268 (patch)
tree7b6238c249db849d647e6679c0d1333cac317ef9 /packages/subproviders
parent1d3bdfc3746255d4dfe28eabed884c7ef23bf1d8 (diff)
parent72fb1ee36f5ca7bceebb1ad2eac707295ccbe9c2 (diff)
downloaddexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar.gz
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar.bz2
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar.lz
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar.xz
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.tar.zst
dexon-sol-tools-c4ab5bc65333204e7cf712e3330406120f163268.zip
Merge pull request #829 from 0xProject/bug/web3-wrapper/fix-invalid-transaction-format
Fix invalid transaction format errors when going through `SingerSubprovider`
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/src/subproviders/signer.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/signer.ts b/packages/subproviders/src/subproviders/signer.ts
index 08a9daceb..f7329e00c 100644
--- a/packages/subproviders/src/subproviders/signer.ts
+++ b/packages/subproviders/src/subproviders/signer.ts
@@ -1,4 +1,4 @@
-import { Web3Wrapper } from '@0xproject/web3-wrapper';
+import { marshaller, Web3Wrapper } from '@0xproject/web3-wrapper';
import { JSONRPCRequestPayload, Provider } from 'ethereum-types';
import { Callback, ErrorCallback } from '../types';
@@ -51,7 +51,8 @@ export class SignerSubprovider extends Subprovider {
case 'eth_sendTransaction':
const [txParams] = payload.params;
try {
- const txHash = await this._web3Wrapper.sendTransactionAsync(txParams);
+ const txData = marshaller.unmarshalTxData(txParams);
+ const txHash = await this._web3Wrapper.sendTransactionAsync(txData);
end(null, txHash);
} catch (err) {
end(err);