Skip to content

Commit

Permalink
Refactor match (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored and willhickey committed Aug 3, 2024
1 parent 311d628 commit 5dd43a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpc-client-api/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,10 @@ impl From<RpcMemcmp> for Memcmp {
| (RpcMemcmpEncoding::Base58, DataType::Encoded(string)) => {
MemcmpEncodedBytes::Base58(string)
}
(RpcMemcmpEncoding::Binary, DataType::Raw(vector)) => MemcmpEncodedBytes::Bytes(vector),
(RpcMemcmpEncoding::Base64, DataType::Encoded(string)) => {
MemcmpEncodedBytes::Base64(string)
}
_ => unreachable!(),
(_, DataType::Raw(vector)) => MemcmpEncodedBytes::Bytes(vector),
};
Memcmp {
offset: memcmp.offset,
Expand Down

0 comments on commit 5dd43a1

Please sign in to comment.