Skip to content

Commit

Permalink
chore: add token decimals getter (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en authored Feb 17, 2025
1 parent b072610 commit 6750aef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion near/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion near/omni-bridge/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "omni-bridge"
version = "0.2.1"
version = "0.2.2"
authors = ["Near One <[email protected]>"]
edition = "2021"
publish = false
Expand Down
4 changes: 4 additions & 0 deletions near/omni-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,10 @@ impl Contract {
self.mpc_signer.clone()
}

pub fn get_token_decimals(&self, address: &OmniAddress) -> Option<Decimals> {
self.token_decimals.get(address)
}

#[access_control_any(roles(Role::DAO, Role::TokenControllerUpdater))]
pub fn update_tokens_controller(
&self,
Expand Down

0 comments on commit 6750aef

Please sign in to comment.