mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
fix error processing (#97)
This commit is contained in:
committed by
Bastian Köcher
parent
7ddff25912
commit
f42905186d
@@ -235,13 +235,15 @@ pub async fn submit_signed_ethereum_headers(
|
|||||||
to_value(Bytes(transaction.encode())).map_err(|e| Error::RequestSerialization(e)),
|
to_value(Bytes(transaction.encode())).map_err(|e| Error::RequestSerialization(e)),
|
||||||
client
|
client
|
||||||
);
|
);
|
||||||
let (client, _) = call_rpc(
|
let (client, _) = bail_on_error!(
|
||||||
client,
|
call_rpc(
|
||||||
"author_submitExtrinsic",
|
client,
|
||||||
Params::Array(vec![encoded_transaction]),
|
"author_submitExtrinsic",
|
||||||
|_| Ok(()),
|
Params::Array(vec![encoded_transaction]),
|
||||||
)
|
|_| Ok(()),
|
||||||
.await;
|
)
|
||||||
|
.await
|
||||||
|
);
|
||||||
|
|
||||||
(client, Ok(ids))
|
(client, Ok(ids))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user