aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-23 05:19:29 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:36 +0800
commita17091b394400ae13b7f85632b2c4a2e20935442 (patch)
tree217cef1998de9e6730431442cae6a3aacd456778 /packages/0x.js/src
parented77c6cb544e9d7e663e672b1190806a7302cf17 (diff)
downloaddexon-0x-contracts-a17091b394400ae13b7f85632b2c4a2e20935442.tar.gz
dexon-0x-contracts-a17091b394400ae13b7f85632b2c4a2e20935442.tar.zst
dexon-0x-contracts-a17091b394400ae13b7f85632b2c4a2e20935442.zip
Make awaitTransactionMinedAsync non-generic again
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/0x.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 8eb8cdd9a..6cfa65cc2 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -285,18 +285,18 @@ export class ZeroEx {
* @param timeoutMs How long (in ms) to poll for transaction mined until aborting.
* @return Transaction receipt with decoded log args.
*/
- public async awaitTransactionMinedAsync<ArgsType>(
+ public async awaitTransactionMinedAsync(
txHash: string,
pollingIntervalMs = 1000,
timeoutMs?: number,
- ): Promise<TransactionReceiptWithDecodedLogs<ArgsType>> {
+ ): Promise<TransactionReceiptWithDecodedLogs> {
let timeoutExceeded = false;
if (timeoutMs) {
setTimeout(() => (timeoutExceeded = true), timeoutMs);
}
const txReceiptPromise = new Promise(
- (resolve: (receipt: TransactionReceiptWithDecodedLogs<ArgsType>) => void, reject) => {
+ (resolve: (receipt: TransactionReceiptWithDecodedLogs) => void, reject) => {
const intervalId = intervalUtils.setAsyncExcludingInterval(
async () => {
if (timeoutExceeded) {
@@ -311,7 +311,7 @@ export class ZeroEx {
transactionReceipt.logs,
this._abiDecoder.tryToDecodeLogOrNoop.bind(this._abiDecoder),
);
- const transactionReceiptWithDecodedLogArgs: TransactionReceiptWithDecodedLogs<ArgsType> = {
+ const transactionReceiptWithDecodedLogArgs: TransactionReceiptWithDecodedLogs = {
...transactionReceipt,
logs: logsWithDecodedArgs,
};