Skip to content

Commit

Permalink
reformat using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbalbin committed May 31, 2023
1 parent 112f87b commit 3088ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ impl NodeInterface {
/// bytes - size of the transaction in bytes
/// wait_time - minutes to wait for the transaction to be included in the blockchain
pub fn get_recommended_fee(&self, bytes: u64, wait_time: u64) -> Result<u64> {
let endpoint = format!("/transactions/getFee?bytes={}&waitTime={}", bytes, wait_time);
let endpoint = format!(
"/transactions/getFee?bytes={}&waitTime={}",
bytes, wait_time
);
let res = self.send_get_req(&endpoint);
let res_json = self.parse_response_to_json(res);
let fee = res_json?.as_u64().unwrap();
Expand Down

0 comments on commit 3088ebc

Please sign in to comment.