Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ethereum and celo tests
Browse files Browse the repository at this point in the history
x3ccd4828 committed Nov 20, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 81ef9cb commit 146e570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethers-core/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -60,6 +60,8 @@ pub fn format_ether<T: Into<U256>>(amount: T) -> U256 {
/// Divides the provided amount with 10^{units} provided.
///
/// ```
/// use ethers_core::{types::U256, utils::format_units};
///
/// let eth = format_units(1395633240123456000_u128, "ether");
/// assert_eq!(eth.to_f64(), 1.395633240123456);
///

0 comments on commit 146e570

Please sign in to comment.