aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 02:36:50 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 02:36:50 +0800
commit51af6de6249ac8d7656052f2a7198ae4341061b6 (patch)
treefa958f5e722cda4faef210e07fbef5ef2e041d30 /packages/website/ts/components
parent5664333490474d1d9a793e887864f125869bf6fa (diff)
downloaddexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar.gz
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar.bz2
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar.lz
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar.xz
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.tar.zst
dexon-sol-tools-51af6de6249ac8d7656052f2a7198ae4341061b6.zip
Update to passing etherTokenAddress into withdraw and deposit calls
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/eth_weth_conversion_button.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/eth_weth_conversion_button.tsx b/packages/website/ts/components/eth_weth_conversion_button.tsx
index b017de27b..c8a279de9 100644
--- a/packages/website/ts/components/eth_weth_conversion_button.tsx
+++ b/packages/website/ts/components/eth_weth_conversion_button.tsx
@@ -88,12 +88,12 @@ export class EthWethConversionButton extends
let balance = tokenState.balance;
try {
if (direction === Side.deposit) {
- await this.props.blockchain.convertEthToWrappedEthTokensAsync(value);
+ await this.props.blockchain.convertEthToWrappedEthTokensAsync(token.address, value);
const ethAmount = ZeroEx.toUnitAmount(value, constants.ETH_DECIMAL_PLACES);
this.props.dispatcher.showFlashMessage(`Successfully wrapped ${ethAmount.toString()} ETH to WETH`);
balance = balance.plus(value);
} else {
- await this.props.blockchain.convertWrappedEthTokensToEthAsync(value);
+ await this.props.blockchain.convertWrappedEthTokensToEthAsync(token.address, value);
const tokenAmount = ZeroEx.toUnitAmount(value, token.decimals);
this.props.dispatcher.showFlashMessage(`Successfully unwrapped ${tokenAmount.toString()} WETH to ETH`);
balance = balance.minus(value);