// SPDX-License-Identifier: MIT
pragma solidity 0.8;
struct Market {
uint256 share;
uint256 price;
}
struct TokenForMarket {
Market market;
uint256 tokenId;
}
contract Test {
function createMarkets(
TokenForMarket[] memory _pool
) public returns (uint) {
return 1;
}
}
this contract's abi return 'tuple is not valid solidty type'
it happens because the argument of the function "createMarkets" is struct which contains struct.
TokenForMarket[] memory _pool
it not happens when the argument is just structure
Market[] memory _pool
Hello!
Thank you for your great tool!
I get an issue with follow contract:
this contract's abi return 'tuple is not valid solidty type' it happens because the argument of the function "createMarkets" is struct which contains struct.
TokenForMarket[] memory _pool
it not happens when the argument is just structureMarket[] memory _pool
the abi is generated by truffle.