chore(rpc): make async (#1748)

This commit is contained in:
Matthias Seitz
2023-03-14 10:55:48 +01:00
committed by GitHub
parent ee3a8af754
commit b121e4d8c7
2 changed files with 8 additions and 4 deletions

View File

@ -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>>>;
}