Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

`set_metadata` of bridge token doesn't support `icon` field #72

Closed think-in-universe closed 3 years ago

think-in-universe commented 3 years ago

The set_metadata method now doesn't support icon field, which is necessary to update in many cases

https://github.com/aurora-is-near/rainbow-token-connector/blob/a45e23aed6d3566ea8f89da7d9527da931699fe6/bridge-token/src/lib.rs#L63-L78

We need to support icon field update.

Please feel free to refer to the FT metadata Rust implementation if necessary: https://github.com/near/near-sdk-rs/blob/ddd9affe7dc9433d6e2abe454841d416d80cb43f/near-contract-standards/src/fungible_token/metadata.rs#L9-L17