aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-04-04 23:59:03 +0800
committerkumavis <aaron@kumavis.me>2018-04-04 23:59:03 +0800
commit502011019a028258305abcb415cdba1b2530b5ad (patch)
tree932e79a29e402761e29a3ef7855bd9911a3706e8 /app/scripts/lib
parent9930f5996c31680de0ee2383d33ed6d065a12cd0 (diff)
downloadtangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar.gz
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar.bz2
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar.lz
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar.xz
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.tar.zst
tangerine-wallet-browser-502011019a028258305abcb415cdba1b2530b5ad.zip
tx - txParams - allow chainId to be a hex string
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/tx-state-manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index 9e597ef37..2ab24d6a0 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -143,7 +143,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
// validate types
switch (key) {
case 'chainId':
- if (typeof value !== 'number') throw new Error(`${key} in txParams is not a Number. got: (${value})`)
+ if (typeof value !== 'number' && typeof value !== 'string') throw new Error(`${key} in txParams is not a Number or hex string. got: (${value})`)
break
default:
if (typeof value !== 'string') throw new Error(`${key} in txParams is not a string. got: (${value})`)