Skip to content

Commit

Permalink
Some correction of lowercase error.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Oct 1, 2024
1 parent bd27e42 commit c54eada
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linera-ethereum/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ where
type Error = EthereumServiceError;

async fn get_accounts(&self) -> Result<Vec<String>, Self::Error> {
Ok(self.request("eth_accounts", ()).await?)
let results: Vec<String> = self.request("eth_accounts", ()).await?;
Ok(results
.into_iter()
.map(|x| x.to_lowercase())
.collect::<Vec<_>>())
}

async fn get_block_number(&self) -> Result<u64, Self::Error> {
Expand Down

0 comments on commit c54eada

Please sign in to comment.