Skip to content

Commit

Permalink
Fix Webpack issue (reported on discord).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 16, 2023
1 parent 6315e78 commit 3ad4273
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src.ts/contract/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ export class EventLog extends Log {
}

export class ContractTransactionReceipt extends TransactionReceipt {
readonly #interface: Interface;
readonly #iface: Interface;

constructor(iface: Interface, provider: Provider, tx: TransactionReceipt) {
super(tx, provider);
this.#interface = iface;
this.#iface = iface;
}

get logs(): Array<EventLog | Log> {
return super.logs.map((log) => {
const fragment = log.topics.length ? this.#interface.getEvent(log.topics[0]): null;
const fragment = log.topics.length ? this.#iface.getEvent(log.topics[0]): null;
if (fragment) {
return new EventLog(log, this.#interface, fragment)
return new EventLog(log, this.#iface, fragment)
} else {
return log;
}
Expand All @@ -52,17 +52,17 @@ export class ContractTransactionReceipt extends TransactionReceipt {
}

export class ContractTransactionResponse extends TransactionResponse {
readonly #interface: Interface;
readonly #iface: Interface;

constructor(iface: Interface, provider: Provider, tx: TransactionResponse) {
super(tx, provider);
this.#interface = iface;
this.#iface = iface;
}

async wait(confirms?: number): Promise<null | ContractTransactionReceipt> {
const receipt = await super.wait();
if (receipt == null) { return null; }
return new ContractTransactionReceipt(this.#interface, this.provider, receipt);
return new ContractTransactionReceipt(this.#iface, this.provider, receipt);
}
}

Expand Down

0 comments on commit 3ad4273

Please sign in to comment.