Commit ad1c9062 authored by Will Cory's avatar Will Cory

annotated return type

parent b80fc6e6
...@@ -374,13 +374,13 @@ export class CrossChainMessenger { ...@@ -374,13 +374,13 @@ export class CrossChainMessenger {
} }
} }
public async getWithdrawalsFromMessage(message: MessageLike) { public async getWithdrawalsFromMessage(message: MessageLike): Promise<ethers.utils.Result[]> {
const resolved = await this.toCrossChainMessage(message) const resolved = await this.toCrossChainMessage(message)
const receipt = await this.l2Provider.getTransactionReceipt( const receipt = await this.l2Provider.getTransactionReceipt(
resolved.transactionHash resolved.transactionHash
) )
const withdrawals: any[] = [] const withdrawals: ethers.utils.Result[] = []
for (const log of receipt.logs) { for (const log of receipt.logs) {
if (log.address === this.contracts.l2.BedrockMessagePasser.address) { if (log.address === this.contracts.l2.BedrockMessagePasser.address) {
const decoded = const decoded =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment