diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f9bd467..c7acab0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ Changelog for `odra`. ### Changed - Refactor of `CEP-95` token implementation. +### Added +- `set_name`, `set_symbol` and `set_decimals` functions to `CEP-18` module. + ## [2.4.0] - 2025-09-02 ### Changed - Refactor of `CEP-95` token implementation. diff --git a/modules/src/cep18_token.rs b/modules/src/cep18_token.rs index d5197d1b..603bdc30 100644 --- a/modules/src/cep18_token.rs +++ b/modules/src/cep18_token.rs @@ -221,6 +221,21 @@ impl Cep18 { amount: *amount }); } + + /// Set name of the token. + pub fn set_name(&mut self, name: String) { + self.name.set(name); + } + + /// Set symbol of the token. + pub fn set_symbol(&mut self, symbol: String) { + self.symbol.set(symbol); + } + + /// Set decimals of the token. + pub fn set_decimals(&mut self, decimals: u8) { + self.decimals.set(decimals); + } } pub(crate) mod utils {