mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 00:31:02 +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)),
|
||||
client
|
||||
);
|
||||
let (client, _) = call_rpc(
|
||||
client,
|
||||
"author_submitExtrinsic",
|
||||
Params::Array(vec![encoded_transaction]),
|
||||
|_| Ok(()),
|
||||
)
|
||||
.await;
|
||||
let (client, _) = bail_on_error!(
|
||||
call_rpc(
|
||||
client,
|
||||
"author_submitExtrinsic",
|
||||
Params::Array(vec![encoded_transaction]),
|
||||
|_| Ok(()),
|
||||
)
|
||||
.await
|
||||
);
|
||||
|
||||
(client, Ok(ids))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user