Skip to content

new Contract() complains if address is an Addressable type #4538

@yuetloo

Description

@yuetloo

Ethers Version

6.9.2

Search Terms

contract

Describe the Problem

const factory = new ContractFactory(...)
const contract = await factory.deploy()
const anotherContract = new Contract(contract.target, abi, wallet) ==> should not complain contract.target is not a string.

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

No response

Environment (Other)

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.minor-bumpPlanned for the next minor version bump.v6Issues regarding v6

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions