diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-18 02:40:04 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-18 02:40:04 +0800 |
commit | b640e2cc4990e83511e1f796a06cdc890ceec396 (patch) | |
tree | 2c1155aa4cd3df33be394e4c717310564d2fc0cf /packages/website/ts/components | |
parent | 054c00e3232b03fe6298b1d6fd203ea5a55b1607 (diff) | |
download | dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.gz dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.bz2 dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.lz dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.xz dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.zst dexon-0x-contracts-b640e2cc4990e83511e1f796a06cdc890ceec396.zip |
Update website calls to deposit/withdraw
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/eth_weth_conversion_button.tsx | 4 |
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); |