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

feat(core): re-export H128 #1786

Merged
merged 2 commits into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ethers-core/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ pub type Selector = [u8; 4];
/// A transaction Hash
pub use ethabi::ethereum_types::H256 as TxHash;

pub use ethabi::ethereum_types::{Address, Bloom, H160, H256, H32, H512, H64, U128, U256, U64};
pub use ethabi::ethereum_types::{
Address, Bloom, H128, H160, H256, H32, H512, H64, U128, U256, U64,
};

pub mod transaction;
pub use transaction::{
Expand Down
4 changes: 2 additions & 2 deletions examples/remove_liquidity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ async fn example() -> Result<()> {
println!("Reserves (token A, Token B): ({}, {})", reserve0, reserve1);

let price =
if reserve0 > reserve1 { 1000 * reserve0 / reserve1 } else { 1000 * reserve1 / reserve0 }
/ 1000;
if reserve0 > reserve1 { 1000 * reserve0 / reserve1 } else { 1000 * reserve1 / reserve0 } /
1000;
println!("token0 / token1 price = {}", price);

let liquidity = 100.into();
Expand Down