Hey, does anyone use Waffle+ Hardhat to test contracts?
I'm unable to figure out how do I send a transaction with a different account without creating a new contract instance. Is there a shorter way?
Jul 18, 2021, 6:45 PM
Please DM/answer here if you know anything 😅
Jul 18, 2021, 6:54 PM
i use ethers but u just getSigners() array and use the one u want
waffle got something like that i imagine
*haha i use waffle too i guess.. woops
waffle got something like that i imagine
*haha i use waffle too i guess.. woops
Jul 18, 2021, 6:55 PM
I can access accounts, but I was thinking there would be a way here like in truffle, we can just override the from parameter and the txn would be sent from that address.
Here waffle uses ethers internally so a contract instance is connected to a signer, and we can't override the from property
Here waffle uses ethers internally so a contract instance is connected to a signer, and we can't override the from property
Jul 18, 2021, 6:57 PM
signer2.deploy or something like that , am afk sry
Jul 18, 2021, 7:03 PM
I use truffle and ganache
Jul 18, 2021, 8:32 PM