aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-06 09:32:28 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-06 09:32:28 +0800
commita72eae7ea84be60792b214b52f2f363b881197b2 (patch)
tree8045f3addd9a50968677824f66d43d5fb063a251 /packages/subproviders/src
parent30e3afc0fbccd01ef5ce62de4dfb0154fd7b7892 (diff)
downloaddexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar.gz
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar.bz2
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar.lz
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar.xz
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.tar.zst
dexon-sol-tools-a72eae7ea84be60792b214b52f2f363b881197b2.zip
Unmarshall txn data in SignerSubprovider before calling web3wrapper sendTransactionAsync
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/signer.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/signer.ts b/packages/subproviders/src/subproviders/signer.ts
index 08a9daceb..1fb613da0 100644
--- a/packages/subproviders/src/subproviders/signer.ts
+++ b/packages/subproviders/src/subproviders/signer.ts
@@ -1,4 +1,5 @@
-import { Web3Wrapper } from '@0xproject/web3-wrapper';
+import { Web3Wrapper, marshaller } from '@0xproject/web3-wrapper';
+
import { JSONRPCRequestPayload, Provider } from 'ethereum-types';
import { Callback, ErrorCallback } from '../types';
@@ -51,7 +52,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);