I have the next entrypoint which I want to use to call update_operators of other FA2 contracts. How do I properly describe the entrypoint & call it? It’s standartized so it should be same for any FA2 contract but I’m struggling to figure how to describe it properly (for example for add_operator call)
@sp.entrypoint
def proxy(self, token_id, contract):
sp.cast(sp.amount, sp.mutez)
sp.cast(token_id, sp.nat)
nftContract = sp.contract(
sp.record(owner = sp.address, operator = sp.address, token_id = sp.nat),
contract,
entrypoint="update_operators"
)
sp.transfer(
sp.record(
owner = sp.source,
operator = sp.address("<operator>"),
token_id = token_id,
),
sp.amount,
nftContract.unwrap_some())