Skip to content

Commit c54eada

Browse files
committed
Some correction of lowercase error.
1 parent bd27e42 commit c54eada

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

linera-ethereum/src/client.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ where
139139
type Error = EthereumServiceError;
140140

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

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

0 commit comments

Comments
 (0)