Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
meta-consensus -> meta-defichain
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Nov 1, 2022
1 parent 955fb43 commit 24f85f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meta/meta-defichain/rpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use codec::Codec;
use jsonrpsee::{
core::{async_trait, Error as JsonRpseeError, RpcResult},
proc_macros::rpc,
types::error::{CallError, ErrorObject},
};
use sp_api::ProvideRuntimeApi;
use sp_blockchain::HeaderBackend;
use sp_rpc::number::NumberOrHex;
use sp_runtime::{
generic::BlockId,
traits::{Block as BlockT, Header as HeaderT},
Expand Down Expand Up @@ -52,7 +50,7 @@ where
let at = BlockId::hash(at.unwrap_or_else(||
// If the block hash is not supplied assume the best block.
self.client.info().best_hash));
api.get_7(&at, a, b).map_err(runtime_error_into_rpc_err)
api.get_7(&at).map_err(runtime_error_into_rpc_err)
}
}

Expand Down

0 comments on commit 24f85f3

Please sign in to comment.