aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-04-24 12:06:56 +0800
committerJacob Evans <jacob@dekz.net>2018-04-24 12:33:32 +0800
commit5682cd0048072fd5c420a35170045134bc5185b9 (patch)
tree0e53cd64194f27261a7955a2ddf80203253aefca /packages/subproviders/src
parent10a379077c551887bc41dc33197298540f28d7c6 (diff)
downloaddexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar.gz
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar.bz2
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar.lz
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar.xz
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.tar.zst
dexon-sol-tools-5682cd0048072fd5c420a35170045134bc5185b9.zip
Update Web3 Provider Engine to 14.0.4
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/base_wallet_subprovider.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts b/packages/subproviders/src/subproviders/base_wallet_subprovider.ts
index 0a9b99ae4..f68d7eb29 100644
--- a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts
+++ b/packages/subproviders/src/subproviders/base_wallet_subprovider.ts
@@ -9,9 +9,10 @@ import { Subprovider } from './subprovider';
export abstract class BaseWalletSubprovider extends Subprovider {
protected static _validateTxParams(txParams: PartialTxParams) {
- assert.isETHAddressHex('to', txParams.to);
+ if (!_.isUndefined(txParams.to)) {
+ assert.isETHAddressHex('to', txParams.to);
+ }
assert.isHexString('nonce', txParams.nonce);
- assert.isHexString('gas', txParams.gas);
}
private static _validateSender(sender: string) {
if (_.isUndefined(sender) || !addressUtils.isAddress(sender)) {