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

Commit 74942fd

Browse files
committed
types(dataunion): Fix withdraw signature types.
1 parent 1eec599 commit 74942fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dataunion/DataUnion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { getAddress } from '@ethersproject/address'
22
import { BigNumber } from '@ethersproject/bignumber'
33
import { arrayify, hexZeroPad } from '@ethersproject/bytes'
44
import { Contract } from '@ethersproject/contracts'
5+
import { Wallet } from '@ethersproject/wallet'
56
import { JsonRpcSigner, TransactionReceipt, TransactionResponse } from '@ethersproject/providers'
67
import debug from 'debug'
78
import { Contracts } from './Contracts'
@@ -237,7 +238,7 @@ export class DataUnion {
237238
amountTokenWei: BigNumber|number|string,
238239
to: EthereumAddress,
239240
withdrawn: BigNumber,
240-
signer: JsonRpcSigner
241+
signer: Wallet | JsonRpcSigner
241242
) {
242243
const message = to
243244
+ hexZeroPad(BigNumber.from(amountTokenWei).toHexString(), 32).slice(2)

0 commit comments

Comments
 (0)