Skip to content

Commit

Permalink
fix changelog link to be at the end of the sentence, use expect inste…
Browse files Browse the repository at this point in the history
…ad of unwrap when returning the max nonce
  • Loading branch information
shamardy committed Apr 17, 2023
1 parent cfbfcf1 commit b33c054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Features:**

**Enhancements/Fixes:**
- An issue was fixed in [#1757](https://github.com/KomodoPlatform/atomicDEX-API/pull/1757) where we don't have to wait for all EVM nodes to sync the latest account nonce.
- An issue was fixed where we don't have to wait for all EVM nodes to sync the latest account nonce [#1757](https://github.com/KomodoPlatform/atomicDEX-API/pull/1757)

## v1.0.2-beta - 2023-04-11

Expand Down
6 changes: 5 additions & 1 deletion mm2src/coins/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5055,7 +5055,11 @@ fn get_addr_nonce(
return ERR!("Couldn't get nonce after 5 errored attempts, aborting");
}
} else {
let max = nonces.iter().map(|(n, _)| *n).max().unwrap();
let max = nonces
.iter()
.map(|(n, _)| *n)
.max()
.expect("nonces should not be empty!");
break Ok((
max,
nonces
Expand Down

0 comments on commit b33c054

Please sign in to comment.