Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody committed Oct 21, 2024
1 parent fa8aa07 commit 857b5c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions event-svc/src/event/validator/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl TimeEventValidator {
.get(&chain_id)
.ok_or_else(|| eth_rpc::Error::NoChainProvider(chain_id.clone()))?;

let proof = provider.chain_inclusion_proof(event.proof()).await?;
let proof = provider.get_chain_inclusion_proof(event.proof()).await?;

if proof.root_cid != event.proof().root() {
return Err(eth_rpc::Error::InvalidProof(format!(
Expand Down Expand Up @@ -243,7 +243,7 @@ mod test {
impl ChainInclusion for EthRpcProviderTest {

fn chain_id(&self) -> &caip2::ChainId;
async fn chain_inclusion_proof(&self, input: &unvalidated::AnchorProof) -> Result<eth_rpc::ChainInclusionProof, eth_rpc::Error>;
async fn get_chain_inclusion_proof(&self, input: &unvalidated::AnchorProof) -> Result<eth_rpc::ChainInclusionProof, eth_rpc::Error>;
}
}

Expand All @@ -257,7 +257,7 @@ mod test {

mock_provider.expect_chain_id().once().return_const(chain);
mock_provider
.expect_chain_inclusion_proof()
.expect_get_chain_inclusion_proof()
.once()
.with(predicate::eq(input))
.return_once(move |_| {
Expand Down
2 changes: 1 addition & 1 deletion validation/src/blockchain/eth_rpc/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl ChainInclusion for HttpEthRpc {
}

/// Get the block chain transaction if it exists with the block timestamp information
async fn chain_inclusion_proof(&self, input: &AnchorProof) -> Result<ChainInclusionProof> {
async fn get_chain_inclusion_proof(&self, input: &AnchorProof) -> Result<ChainInclusionProof> {
// transaction to blockHash, blockNumber, input
let tx_hash = expected_tx_hash(input.tx_hash())
.map_err(|e| Error::InvalidArgument(format!("invalid transaction hash: {}", e)))?;
Expand Down

0 comments on commit 857b5c9

Please sign in to comment.