Consider the following code:
module experiment::test {
struct TableA has key{
id: UID,
list: Table<String, bool>
}
fun init(otw: TEST, ctx: &mut TxContext) {
// Create TableA type Object
}
public entry fun add_element(
object_id: UID,
element_to_add: String
){
// Add element to the object with the ID, object_id
}
In the add_element
function how can I access the TableA type Object and add the string element element_to_add
?