Sui.

Post

Share your knowledge.

tomek.
Jan 29, 2025
Expert Q&A

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
1
2
Share
Comments
.

Answers

2
Michelle .
Jan 30 2025, 08:11

You 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 .

1
Comments
.
andreweth..
Jan 30 2025, 12:07

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 .

0
Comments
.

Do you know the answer?

Please log in and share it.

We use cookies to ensure you get the best experience on our website.
More info