Is there a way to use the typechain typings to get encoded calldata? #820
-
Hi hi, I think I'm so close to having this but can't seem to get anything to work. I'm trying to generate a
can someone help me with the syntax for line 2 using the typings? All of the ways I can find around use the ABI wrapping method which seems redundant when we already have the function abi parsed into types. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the populateTransaction // ethers v5
const {data} = await multisigContract.populateTransaction.addOwner(newOwner)
// ethers v6
const {data} = await multisigContract.addOwner.populateTransaction(newOwner) |
Beta Was this translation helpful? Give feedback.
You can use the populateTransaction