Can you guys help me correctly structure a call to the update_operators in an FA2? I tried everything single combination I can think of, and it still doesn't work
It says the structure should be like this:
Typedef
$update_operators:
[ $update_operators_item, … ]
$update_operators_item:
{ "add_operator": $add_operator } ||
{ "remove_operator": $remove_operator }
$remove_operator:
{
"owner": address,
"operator": address,
"token_id": nat
}
$add_operator:
{
"owner": address,
"operator": address,
"token_id": nat
}
$address:
str /* Base58 encoded tz or KT address */
$nat:
int /* Natural number */
This was my final attempt and I'm stuck:
add_op = token.update_operators({
"update_operators_item" : {
"add_operator": {
"owner": 'tz1...',
"operator": 'KT1...',
"token_id": 0,
}
},
})
$update_operators
is an array ;)