New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABIEncoderV2 public functions with struct containing multiple members of the same struct type #3275
Comments
Have the exact same issue. |
It also occurs if the same struct is embedded multiple times indirectly through composition:
|
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 13, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 27, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 27, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 28, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 28, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Feb 28, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 1, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 1, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 1, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 1, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 1, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 2, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 2, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 3, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 3, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 3, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 4, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 4, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 4, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 4, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 4, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 5, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 5, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 5, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 6, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 6, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 6, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 6, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 7, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Mar 7, 2018
attente
added a commit
to horizon-games/eth-state-channels-research
that referenced
this issue
Apr 23, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ABI encoder version 2 does not support public functions with a struct containing multiple members of the same struct type. For example, the below code fails with error
TestContract.sol:18:28: TypeError: Internal or recursive type is not allowed for public or external functions.
If I remove line 13
SubStruct subStruct2;
the code does compile using Solidity the 0.4.19 compiler.The code will also compile if I change line 18 to be internal instead of public
function addTestStruct(TestStruct testStruct) internal
My workaround is to declare a second
SubStruct
The text was updated successfully, but these errors were encountered: