espresso-cash-public
espresso-cash-public copied to clipboard
Error on TokenInstruction.setAuthority to null on Token
Describe the bug Setting the new authority to null generates an error on Solscan.
To Reproduce Steps to reproduce the behavior:
- Use
TokenInstruction.setAuthority
and pass anull newAuthority
. - Go to the blockchain explorer and look up the transaction generated.
- On instruction details, found this error
"ERROR":{1 item "message":"src property must be a valid json object" }
Expected behavior
I expected no error and since I am disabling the minting authority of the token, the status of the token should change from current supply
to fixed supply
.