Skip to content

Bug Report Title #3680

Answered by ricmoo
ybbus asked this question in Q&A
Jan 24, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you use a VoidSigner, you can call a contract from a specific account, for example contract.connect(fromAddress).estimateGas.mint(...). When using .connectwith a string address, it will automatically create aVoidSigner` for you.

You can also specify from in the overrides: contract.estiamteGas.mint(... , { from: fromAddress }).

Let me know if that helps. :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ybbus
Comment options

Answer selected by ybbus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3679 on January 24, 2023 16:57.