diff --git a/lee/state_machine/src/state/mod.rs b/lee/state_machine/src/state/mod.rs index d49c1c8f..8b91b698 100644 --- a/lee/state_machine/src/state/mod.rs +++ b/lee/state_machine/src/state/mod.rs @@ -270,10 +270,9 @@ impl V03State { .unwrap_or_else(Account::default) } - /// Borrowing counterpart of [`Self::get_account_by_id`], for callers that - /// only inspect the account and would otherwise clone it to drop it. + /// Borrowing counterpart of [`Self::get_account_by_id`]. #[must_use] - pub fn get_public_account(&self, account_id: AccountId) -> Option<&Account> { + pub fn get_account_by_id_ref(&self, account_id: AccountId) -> Option<&Account> { self.public_state.get(&account_id) } diff --git a/lez/sequencer/core/src/lib.rs b/lez/sequencer/core/src/lib.rs index 4671b845..5ed0e50c 100644 --- a/lez/sequencer/core/src/lib.rs +++ b/lez/sequencer/core/src/lib.rs @@ -853,7 +853,7 @@ fn deposit_already_minted(state: &lee::V03State, deposit_op_id: HashType) -> boo let receipt_id = bridge_core::deposit_receipt_account_id(programs::bridge().id(), deposit_op_id.0); state - .get_public_account(receipt_id) + .get_account_by_id_ref(receipt_id) .is_some_and(|receipt| *receipt != lee::Account::default()) }