Different sender with AEproject tests

I’m playing with the BasicNFT contract in AEproject and get stuck when trying to invoke an entrypoint as a different caller. What I do is this:

await instance.burn(tokenID, {caller: receiverKeyPair.publicKey})

I also tried address and sender instead of caller, no luck. I keep being treated on the error Owner of token is not you! from the contract.

I can’t find anything in the AEproject documentation nor on the document hub either. Anyone able to tell me how to do this?

2 Likes

you have to change the keypair of the instance you are using or create a separate instance with different keypair to sign the tx

2 Likes