aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:07:40 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:07:40 +0800
commit7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f (patch)
treef73239298557228976af4b2182f50008a9ee222f /packages/instant/src/util
parent8288e8cce963bbd96c71b3adeb5d34bb96c30693 (diff)
downloaddexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.gz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.bz2
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.lz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.xz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.zst
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.zip
Has Sufficient Funds/Balance -> Has Sufficient ETH
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/balance.ts2
-rw-r--r--packages/instant/src/util/error.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/util/balance.ts b/packages/instant/src/util/balance.ts
index 24b7b99c3..533656858 100644
--- a/packages/instant/src/util/balance.ts
+++ b/packages/instant/src/util/balance.ts
@@ -3,7 +3,7 @@ import { Web3Wrapper } from '@0x/web3-wrapper';
import * as _ from 'lodash';
export const balanceUtil = {
- hasSufficientFunds: async (takerAddress: string | undefined, buyQuote: BuyQuote, web3Wrapper: Web3Wrapper) => {
+ hasSufficentEth: async (takerAddress: string | undefined, buyQuote: BuyQuote, web3Wrapper: Web3Wrapper) => {
if (_.isUndefined(takerAddress)) {
return false;
}
diff --git a/packages/instant/src/util/error.ts b/packages/instant/src/util/error.ts
index 5db0c66d2..39c563c75 100644
--- a/packages/instant/src/util/error.ts
+++ b/packages/instant/src/util/error.ts
@@ -49,7 +49,7 @@ const humanReadableMessageForError = (error: Error, asset?: Asset): string | und
if (error.message === AssetBuyerError.SignatureRequestDenied) {
return 'You denied this transaction';
}
- if (error.message === ZeroExInstantError.InsufficientBalance) {
+ if (error.message === ZeroExInstantError.InsufficientETH) {
return "You don't have enough ETH";
}