aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/test/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-10-30 01:12:44 +0800
committerGitHub <noreply@github.com>2018-10-30 01:12:44 +0800
commit4e4291eccdd6c837bbec70603aa6eb64d3aa8d85 (patch)
treeedf8006576143d5cd1c32b052164ac898c57c8b2 /packages/instant/test/util
parentae6202ed3d777605a3fd02cd29141a3ba40f4b34 (diff)
parent7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f (diff)
downloaddexon-sol-tools-4e4291eccdd6c837bbec70603aa6eb64d3aa8d85.tar.gz
dexon-sol-tools-4e4291eccdd6c837bbec70603aa6eb64d3aa8d85.tar.zst
dexon-sol-tools-4e4291eccdd6c837bbec70603aa6eb64d3aa8d85.zip
Merge pull request #1193 from 0xProject/feature/not-enough-eth
[instant] Not enough ETH error message
Diffstat (limited to 'packages/instant/test/util')
-rw-r--r--packages/instant/test/util/format.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/test/util/format.test.ts b/packages/instant/test/util/format.test.ts
index 2c9294c78..c346b7604 100644
--- a/packages/instant/test/util/format.test.ts
+++ b/packages/instant/test/util/format.test.ts
@@ -1,15 +1,15 @@
import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
-import { ethDecimals } from '../../src/constants';
+import { ETH_DECIMALS } from '../../src/constants';
import { format } from '../../src/util/format';
const BIG_NUMBER_ONE = new BigNumber(1);
const BIG_NUMBER_DECIMAL = new BigNumber(0.432414);
const BIG_NUMBER_IRRATIONAL = new BigNumber(5.3014059295032);
-const ONE_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_ONE, ethDecimals);
-const DECIMAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_DECIMAL, ethDecimals);
-const IRRATIONAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_IRRATIONAL, ethDecimals);
+const ONE_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_ONE, ETH_DECIMALS);
+const DECIMAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_DECIMAL, ETH_DECIMALS);
+const IRRATIONAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_IRRATIONAL, ETH_DECIMALS);
const BIG_NUMBER_FAKE_ETH_USD_PRICE = new BigNumber(2.534);
describe('format', () => {