Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: ensure tuple arguments are encoded as tuples #363

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 2, 2021

Motivation

  • single solidity struct arguments resulted in an invalid type check when encoding the function parameters, such as
 function addLiquidityEthForUniV3(CellarAddParams calldata cellarParams)

Solution

  • Modify the generated function body so that tuples are treated as tuples when encode_function_data is invoked internally

@zmanian
Copy link
Collaborator

zmanian commented Aug 2, 2021

This is test fixes the invoking a contract calls with tuple args for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants