5afe / contract-proxy-kit

Enable batched transactions and contract account interactions using a unique deterministic Gnosis Safe.
102 stars 45 forks source link

ethers.js v5 through web3-react #128

Open cag opened 3 years ago

cag commented 3 years ago

Somebody using web3-react and ethers.js v5 with this library currently is unable to initialize the CPK:

image

I think the error is triggered from here: https://github.com/ethers-io/ethers.js/blob/22dee96f512ad7d7cae5d278cc607cdff6112f05/packages/contracts/src.ts/index.ts#L624

The return value of library.getSigner(account) seems legit at first glance though:

image

codemaster727 commented 2 years ago

I got same error in recent days. I will share you after fix it.