This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[cfg(test)] | |
mod tests { | |
use ibc_core_channel_types::msgs::MsgTimeout; | |
use ibc_core_client::types::error::ClientError; | |
use ibc_core_commitment_types::commitment::{ | |
CommitmentPrefix, CommitmentProofBytes, CommitmentRoot, | |
}; | |
use ibc_core_commitment_types::merkle::{apply_prefix, MerkleProof}; | |
use ibc_core_commitment_types::specs::ProofSpecs; | |
use ibc_core_host::types::path::{Path, SeqRecvPath}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hermes/crates/relayer/src/chain/near/mod.rs | |
mod test { | |
use super::*; | |
fn query_view_state_proof(height: u64) -> Result<Vec<u8>, Error> { | |
let rt = Arc::new(TokioRuntime::new().unwrap()); | |
let client = NearRpcClient::new( | |
"https://beta.rpc.testnet.near.org", //"https://nd-354-497-726.p2pify.com/eedb1960b8b7f8747090aee8583d01f2", | |
// "https://rpc.testnet.near.org" | |
); |