aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-10 04:17:25 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-10 05:07:27 +0800
commit1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98 (patch)
tree9c7a18ff6016343f0371d3700badd944d62bc343 /packages/contracts/test/utils
parentb9d8d2d5e3e7aa5f14ae2fd2019460890497bb7e (diff)
downloaddexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar.gz
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar.bz2
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar.lz
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar.xz
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.tar.zst
dexon-sol-tools-1b5c5e7a3ba17ca72ea700cd2a1884130e13fc98.zip
Change withdrawERC20 => withdrawAsset, reuse transfer logic
Diffstat (limited to 'packages/contracts/test/utils')
-rw-r--r--packages/contracts/test/utils/forwarder_wrapper.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/test/utils/forwarder_wrapper.ts b/packages/contracts/test/utils/forwarder_wrapper.ts
index ef7476e36..5b9a63ddf 100644
--- a/packages/contracts/test/utils/forwarder_wrapper.ts
+++ b/packages/contracts/test/utils/forwarder_wrapper.ts
@@ -106,12 +106,12 @@ export class ForwarderWrapper {
const tx = await this._logDecoder.getTxWithDecodedLogsAsync(txHash);
return tx;
}
- public async withdrawERC20Async(
- tokenAddress: string,
+ public async withdrawAssetAsync(
+ assetData: string,
amount: BigNumber,
txData: TxDataPayable,
): Promise<TransactionReceiptWithDecodedLogs> {
- const txHash = await this._forwarderContract.withdrawERC20.sendTransactionAsync(tokenAddress, amount, txData);
+ const txHash = await this._forwarderContract.withdrawAsset.sendTransactionAsync(assetData, amount, txData);
const tx = await this._logDecoder.getTxWithDecodedLogsAsync(txHash);
return tx;
}