I am Not able to get weeklyBusiness array inside User struct. as the contract is already deployed is there a way i can change ABI to get all components of User struct including arrays using userInfo function.
struct WeeklyBusiness {
uint256 amount;
uint256 time;
}
struct User {
uint256 level;
uint256 start;
WeeklyBusiness[] weeklyBusiness;
uint256[3] registered;
}
mapping(address => User) public userInfo;
Generated ABI:
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "userInfo",
"outputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "start",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
I tried add this in outputs of generated ABI, but it didn't worked:
{
"internalType": "tuple[]",
"name": "weeklyBusiness",
"type": "tuple[]"
}