Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Zemanovic <tomas@heliax.dev>
  • Loading branch information
sug0 and tzemanovic authored Sep 29, 2023
1 parent d128f95 commit ccfb134
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions shared/src/sdk/eth_bridge/bridge_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ where
let resp = IO::read().await.map_err(|e| {
let msg =
format!("Encountered error reading from STDIN: {e:?}");
display_line!(IO, "{msg}");
edisplay_line!(IO, "{msg}");
Error::Other(msg)
})?;
match resp.trim() {
Expand All @@ -318,7 +318,7 @@ where
.generate_bridge_pool_proof(client, Some(data), None, false)
.await
.map_err(|e| {
display_line!(IO, "Encountered error constructing proof:\n{:?}", e);
edisplay_line!(IO, "Encountered error constructing proof:\n{:?}", e);
Error::EthereumBridge(EthereumBridgeError::GenBridgePoolProof(
e.to_string(),
))
Expand Down Expand Up @@ -453,7 +453,7 @@ where
AbiDecode::decode(&abi_encoded_args).map_err(|error| {
let msg =
format!("Unable to decode the generated proof: {:?}", error);
display_line!(IO, "{msg}");
edisplay_line!(IO, "{msg}");
EncodingError::Decoding(msg)
})?;

Expand Down Expand Up @@ -965,7 +965,7 @@ mod recommendations {
bridge_pool_gas_fees: total_fees,
})
} else {
display_line!(
edisplay_line!(
IO,
"Unable to find a recommendation satisfying the input \
parameters."
Expand Down
2 changes: 1 addition & 1 deletion shared/src/sdk/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ where
.await
// maybe time out
.map_err(|_| {
display_line!(
edisplay_line!(
IO,
"Node is still catching up, wait for it to finish synching."
);
Expand Down

0 comments on commit ccfb134

Please sign in to comment.