diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:44 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:44 +0800 |
commit | 9512978de9aee1953930d4f16a105ec5ef7f048e (patch) | |
tree | 64758b2ed21ad734f23c8d764b17d2f48abcb716 /packages/instant/src/util/address.ts | |
parent | ffecba21f4e9dcda961a3e8432e70e6605174de5 (diff) | |
download | dexon-0x-contracts-9512978de9aee1953930d4f16a105ec5ef7f048e.tar.gz dexon-0x-contracts-9512978de9aee1953930d4f16a105ec5ef7f048e.tar.zst dexon-0x-contracts-9512978de9aee1953930d4f16a105ec5ef7f048e.zip |
feat(instant): Show message if user doesn't have enough ETH
Diffstat (limited to 'packages/instant/src/util/address.ts')
-rw-r--r-- | packages/instant/src/util/address.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/instant/src/util/address.ts b/packages/instant/src/util/address.ts new file mode 100644 index 000000000..97ed30a00 --- /dev/null +++ b/packages/instant/src/util/address.ts @@ -0,0 +1,6 @@ +import { web3Wrapper } from '../util/web3_wrapper'; + +export const getBestAddress = async (): Promise<string> => { + const addresses = await web3Wrapper.getAvailableAddressesAsync(); + return addresses[0]; +}; |