aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/util/address.ts
blob: b21863a8e07feedb1c1b2baa417204a0b3d241df (plain) (tree)
1
2
3
4
5
6
                                               
 
                                                                                                


                                                                     
import { Web3Wrapper } from '@0x/web3-wrapper';

export const getBestAddress = async (web3Wrapper: Web3Wrapper): Promise<string | undefined> => {
    const addresses = await web3Wrapper.getAvailableAddressesAsync();
    return addresses[0];
};