diff --git a/rust/agents/relayer/src/merkle_tree_builder.rs b/rust/agents/relayer/src/merkle_tree_builder.rs
index b2e3f38a0..31e33e739 100644
--- a/rust/agents/relayer/src/merkle_tree_builder.rs
+++ b/rust/agents/relayer/src/merkle_tree_builder.rs
@@ -90,7 +90,7 @@ impl MerkleTreeBuilder {
}
fn ingest_nonce(&mut self, nonce: u32) -> Result<(), MerkleTreeBuilderError> {
- match self.db.message_id_by_nonce(nonce) {
+ match self.db.retrieve_message_id_by_nonce(&nonce) {
Ok(Some(leaf)) => {
debug!(nonce, "Ingesting leaf");
self.prover.ingest(leaf).expect("!tree full");
diff --git a/rust/agents/relayer/src/msg/gas_payment/mod.rs b/rust/agents/relayer/src/msg/gas_payment/mod.rs
index bce348115..4b5a66b9c 100644
--- a/rust/agents/relayer/src/msg/gas_payment/mod.rs
+++ b/rust/agents/relayer/src/msg/gas_payment/mod.rs
@@ -78,8 +78,8 @@ impl GasPaymentEnforcer {
tx_cost_estimate: &TxCostEstimate,
) -> Result