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/blockchain.ts | |
parent | 054c00e3232b03fe6298b1d6fd203ea5a55b1607 (diff) | |
download | dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.gz dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.bz2 dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.lz dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.xz dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.tar.zst dexon-sol-tools-b640e2cc4990e83511e1f796a06cdc890ceec396.zip |
Update website calls to deposit/withdraw
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 6877a301a..a42b19cff 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -388,18 +388,18 @@ export class Blockchain { const balance = await this.web3Wrapper.getBalanceInEthAsync(owner); return balance; } - public async convertEthToWrappedEthTokensAsync(amount: BigNumber): Promise<void> { + public async convertEthToWrappedEthTokensAsync(etherTokenAddress: string, amount: BigNumber): Promise<void> { utils.assert(!_.isUndefined(this.zeroEx), 'ZeroEx must be instantiated.'); utils.assert(this.doesUserAddressExist(), BlockchainCallErrs.USER_HAS_NO_ASSOCIATED_ADDRESSES); - const txHash = await this.zeroEx.etherToken.depositAsync(amount, this.userAddress); + const txHash = await this.zeroEx.etherToken.depositAsync(etherTokenAddress, amount, this.userAddress); await this.showEtherScanLinkAndAwaitTransactionMinedAsync(txHash); } - public async convertWrappedEthTokensToEthAsync(amount: BigNumber): Promise<void> { + public async convertWrappedEthTokensToEthAsync(etherTokenAddress: string, amount: BigNumber): Promise<void> { utils.assert(!_.isUndefined(this.zeroEx), 'ZeroEx must be instantiated.'); utils.assert(this.doesUserAddressExist(), BlockchainCallErrs.USER_HAS_NO_ASSOCIATED_ADDRESSES); - const txHash = await this.zeroEx.etherToken.withdrawAsync(amount, this.userAddress); + const txHash = await this.zeroEx.etherToken.withdrawAsync(etherTokenAddress, amount, this.userAddress); await this.showEtherScanLinkAndAwaitTransactionMinedAsync(txHash); } public async doesContractExistAtAddressAsync(address: string) { |