Skip to content

Commit

Permalink
feat: add getter for finalised transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Oct 29, 2024
1 parent 1e6a04b commit e0f1bc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions near/nep141-locker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,10 @@ impl Contract {
.sdk_expect("The transfer does not exist")
}

pub fn is_transfer_finalised(&self, chain: ChainKind, nonce: U128) -> bool {
self.finalised_transfers.contains_key(&(chain, nonce.0))
}

#[access_control_any(roles(Role::DAO))]
pub fn add_factory(&mut self, address: OmniAddress) {
self.factories.insert(&(&address).into(), &address);
Expand Down

0 comments on commit e0f1bc9

Please sign in to comment.