From 5dd43a1a41c1e87fd7c36b6ce3124a9ae91a9556 Mon Sep 17 00:00:00 2001 From: Tyera Date: Tue, 30 Jul 2024 15:38:12 -0600 Subject: [PATCH] Refactor match (#2358) --- rpc-client-api/src/filter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpc-client-api/src/filter.rs b/rpc-client-api/src/filter.rs index ef7aa12217b535..398bd9807d4396 100644 --- a/rpc-client-api/src/filter.rs +++ b/rpc-client-api/src/filter.rs @@ -280,11 +280,10 @@ impl From 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,