current position:Home>Structure nested query problem

Structure nested query problem

2022-02-03 23:32:57 Q & A of Denglian community

struct Join {        uint256 num;}struct User{        uint256 amount;    Join [] join }mapping(address => User) public users;

Previously deployed contracts ,Join Medium num I didn't write a function to query , You can't get this value externally ,users Is a public variable , The built-in query method can only get amount, Cannot find nested structure data , I'd like to ask if there are other ways to get num Value? ? Thank you for the

Take the answer 1:

No, .

Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.

Random recommended