mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(rpc): make async (#1748)
This commit is contained in:
@ -69,7 +69,7 @@ pub trait TraceApi {
|
||||
|
||||
/// Returns transaction trace at given index.
|
||||
#[method(name = "trace_get")]
|
||||
fn trace_get(
|
||||
async fn trace_get(
|
||||
&self,
|
||||
hash: H256,
|
||||
indices: Vec<Index>,
|
||||
@ -77,5 +77,6 @@ pub trait TraceApi {
|
||||
|
||||
/// Returns all traces of given transaction.
|
||||
#[method(name = "trace_transaction")]
|
||||
fn trace_transaction(&self, hash: H256) -> Result<Option<Vec<LocalizedTransactionTrace>>>;
|
||||
async fn trace_transaction(&self, hash: H256)
|
||||
-> Result<Option<Vec<LocalizedTransactionTrace>>>;
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ where
|
||||
}
|
||||
|
||||
/// Handler for `trace_get`
|
||||
fn trace_get(
|
||||
async fn trace_get(
|
||||
&self,
|
||||
_hash: H256,
|
||||
_indices: Vec<Index>,
|
||||
@ -105,7 +105,10 @@ where
|
||||
}
|
||||
|
||||
/// Handler for `trace_transaction`
|
||||
fn trace_transaction(&self, _hash: H256) -> Result<Option<Vec<LocalizedTransactionTrace>>> {
|
||||
async fn trace_transaction(
|
||||
&self,
|
||||
_hash: H256,
|
||||
) -> Result<Option<Vec<LocalizedTransactionTrace>>> {
|
||||
Err(internal_rpc_err("unimplemented"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user