Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 501a15b

Browse files
committed
added type
apparently ethers doesn't do enough to tell tx.wait() returns a ContractReceipt...
1 parent de6bbec commit 501a15b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dataunion/Contracts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getCreate2Address, isAddress } from '@ethersproject/address'
22
import { arrayify, hexZeroPad } from '@ethersproject/bytes'
3-
import { Contract } from '@ethersproject/contracts'
3+
import { Contract, ContractReceipt } from '@ethersproject/contracts'
44
import { keccak256 } from '@ethersproject/keccak256'
55
import { defaultAbiCoder } from '@ethersproject/abi'
66
import { verifyMessage } from '@ethersproject/wallet'
@@ -137,7 +137,7 @@ export class Contracts {
137137
}
138138

139139
// move signatures from sidechain to mainnet
140-
async transportSignaturesForMessage(messageHash: string) {
140+
async transportSignaturesForMessage(messageHash: string): Promise<ContractReceipt | null> {
141141
const sidechainAmb = await this.getSidechainAmb()
142142
const message = await sidechainAmb.message(messageHash)
143143
const messageId = '0x' + message.substr(2, 64)

0 commit comments

Comments
 (0)