Skip to content

How to use decodeAbiParameters on a tuple? #1801

Answered by jxom
BravoNatalie asked this question in Question
Discussion options

You must be logged in to vote
const [config, signature, signer] = decodeAbiParameters(
  parseAbiParameters([
    '(bytes32 contractType, uint32 chainType, bytes32 salt, bytes byteCode, bytes initCode) config',
    '(bytes32 r, bytes32 s, uint8 v) signature',
    'address signer',
  ]),
  input,
)

return { config, signature, signer }

should work

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jxom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants