MetaMask does not allow to add custom tokens with a symbol of more than 11 characters. In order to do so, users need to customise the symbol manually and add it.
However, we would like to programatically change the symbol via the wallet_watchAsset API. However, when we try to simply change the symbol to be cut off at less than 11 characters we receive the following error:
The symbol in the request (SOME_TOKEN) does not match the symbol in the contract (SOME_TOKEN_SYMBOL)
Although it is now 9 characters long. Is there any way to programatically achieve the same as if a user would override the symbol manually?
@0xroo I am not sure how comparable these issues are. The underlying problem is the same, however here it is about that is possible to add a custom token with <= 11 characters by hand in MetaMask. And I would like to know if there is a way to do this programatically. The issue you are referencing is generally increasing the token max length allowed (which is also great).
@Nic I don’t know about the way to override it programmatically would you mind opening a conversation: https://support.metamask.io/ > click Start a Conversation Ask to connect you with tech support once you reached the agent
@0xroo thanks for this suggestion, I have reached out to the chat and now am in the process of a Zendesk issue, where someone from the higher technical team will reach out to me.