Is there a way to use the typechain typings to get encoded calldata? #820
Answered
by
zemse
stevieraykatz
asked this question in
Q&A
|
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. |
Answered by
zemse
Apr 4, 2023
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) |
1 reply
Answer selected by
stevieraykatz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the populateTransaction