diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-11 19:49:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-11 19:49:15 +0800 |
commit | 870ba445b85aec8331059ebdc80e8d37d73bf9cf (patch) | |
tree | 6b29441ee2831f3bc22bf289b9e2bad667199b5b /packages/website/ts/redux/dispatcher.ts | |
parent | 0aad2ee005c0d6d530dd870ec1dd38399359a3c4 (diff) | |
parent | caaa70f6302b0d84d43ca93ab014e0cf37886c0a (diff) | |
download | dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar.gz dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar.bz2 dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar.lz dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar.xz dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.tar.zst dexon-0x-contracts-870ba445b85aec8331059ebdc80e8d37d73bf9cf.zip |
Merge pull request #444 from 0xProject/dedupWeb3Wrapper
Remove custom web3Wrapper from website
Diffstat (limited to 'packages/website/ts/redux/dispatcher.ts')
-rw-r--r-- | packages/website/ts/redux/dispatcher.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts index 5c40ded2c..13e9a10cc 100644 --- a/packages/website/ts/redux/dispatcher.ts +++ b/packages/website/ts/redux/dispatcher.ts @@ -86,7 +86,7 @@ export class Dispatcher { type: ActionTypes.UpdateOrderTakerAddress, }); } - public updateUserAddress(address: string) { + public updateUserAddress(address?: string) { this._dispatch({ data: address, type: ActionTypes.UpdateUserAddress, @@ -125,14 +125,14 @@ export class Dispatcher { public batchDispatch( tokenByAddress: TokenByAddress, networkId: number, - userAddress: string, + userAddressIfExists: string | undefined, sideToAssetToken: SideToAssetToken, ) { this._dispatch({ data: { tokenByAddress, networkId, - userAddress, + userAddressIfExists, sideToAssetToken, }, type: ActionTypes.BatchDispatch, @@ -155,7 +155,7 @@ export class Dispatcher { type: ActionTypes.UpdateOrderECSignature, }); } - public updateUserEtherBalance(balance: BigNumber) { + public updateUserWeiBalance(balance: BigNumber) { this._dispatch({ data: balance, type: ActionTypes.UpdateUserEtherBalance, |