Post
Share your knowledge.
How to update coin logo on Sui smart contract?
I'm trying to update the coin logo on a deployed smart contract on SuiCoins.com, but I've hit a roadblock because the contract is immutable. Are there any possible workarounds or methods like using proxy contracts or implementation contracts to change the logo so it reflects on platforms like suiscan or suivision?
- Sui
Answers
2You can't directly update metadata for an immutable smart contract. However, if your smart contract uses the coin module and you've been given the TreasuryCap, you can use the update_icon_url
method to update the URL of the coin's icon in the metadata. This won't work if you've created a fixed supply token .
If updating icon_url
in CoinMetadata doesn't reflect immediately on explorers like suiscan, you might want to check if there's a delay or if you need to trigger a refresh on these platforms. Sometimes the update reflects in multisignature wallets but takes time to appear on explorers .
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.