Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yuetloo opened this issue Jan 11, 2024 · 1 comment
Closed

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

yuetloo opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. minor-bump Planned for the next minor version bump. v6 Issues regarding v6

Comments

@yuetloo
Copy link
Collaborator

yuetloo commented Jan 11, 2024

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

@yuetloo yuetloo added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Jan 11, 2024
@ricmoo ricmoo added enhancement New feature or improvement. on-deck This Enhancement or Bug is currently being worked on. minor-bump Planned for the next minor version bump. next-patch Issues scheduled for the next arch release. and removed investigate Under investigation and may be a bug. labels Jan 13, 2024
@ricmoo
Copy link
Member

ricmoo commented Feb 9, 2024

This has been added in v6.11.0.

Thanks! :)

@ricmoo ricmoo closed this as completed Feb 9, 2024
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. next-patch Issues scheduled for the next arch release. labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. minor-bump Planned for the next minor version bump. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants