Skip to content

Commit

Permalink
use more actual check_info
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Oct 29, 2024
1 parent d923b2a commit 170696b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shared/src/near.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use std::sync::Arc;

use anyhow::bail;
use near_api::{signer::Signer, types::Data, Contract, NetworkConfig};
use near_primitives::views::{FinalExecutionOutcomeView, FinalExecutionStatus};
use near_primitives::{
types::BlockReference,
views::{FinalExecutionOutcomeView, FinalExecutionStatus},
};
use serde_json::json;
use tracing::instrument;

Expand Down Expand Up @@ -173,6 +176,7 @@ impl NearClient {
.contract
.call_function("check_info", args)?
.read_only()
.at(BlockReference::latest())
.fetch_from(&self.network)
.await
.map_err(|e| anyhow::anyhow!("Failed to call check_info: {:?}", e))?;
Expand Down

0 comments on commit 170696b

Please sign in to comment.