In my nft contract I have two shared list objects. like →
struct ListA has key{
id: UID,
list: Table<String, bool>
}
struct ListB has key{
id: UID,
list: Table<String, bool>
}
I have another shared object to store the id’s of listA and listB. like →
struct ListId has key {
id: UID,
list_A: ID,
list_B: ID,
}
now in the mint function I want to access the listA and ListB objects from the stored Id’s and update values of those objects .
fun mint( list_id: &mut ListID){
//Update table of ListA objects using the ListA object Id’s stored in list_id
…
…
}
Is it possible to do something like this in SUI or what is the correct approach or syntax ?