Zilliqa / ZRC

Zilliqa Reference Contracts
MIT License
40 stars 57 forks source link

Incorrect recipient in Mint() callback message #102

Closed ghost closed 2 years ago

ghost commented 2 years ago

In this message, recipient is token recipient. Therefore, recipient : _sender should be recipient: to.

  msg_to_sender = { _tag : "MintCallBack"; _recipient : _sender; _amount : Uint128 0;
                    recipient : _sender; token_id : token_id; token_uri : token_uri };

https://github.com/Zilliqa/ZRC/blob/master/reference/nonfungible-token.scilla#L384-L385