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

Commit

Permalink
serde_bytes removed From<Vec<u8>> for ByteBuf
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Sep 23, 2020
1 parent f3376e4 commit 787955a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl Translator {
.iter()
.map(|addr: &ethereum_types::Address| {
let bytes: &[u8] = addr;
bytes.to_vec().into()
ByteBuf::from(bytes.to_vec())
})
.collect(),
});
Expand All @@ -375,7 +375,7 @@ impl Translator {
.iter()
.map(|topic: &ethereum_types::H256| {
let bytes: &[u8] = topic;
bytes.to_vec().into()
ByteBuf::from(bytes.to_vec())
})
.collect(),
})
Expand Down

0 comments on commit 787955a

Please sign in to comment.