Skip to content

Commit

Permalink
move hex to helpers out of bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 15, 2024
1 parent 6c4b026 commit 82e4e33
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/neutron-sdk/src/bindings/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod hex;
#[allow(deprecated)]
pub mod msg;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::fmt::Write as _;

// TODO: do we need it?
/// Encodes bytes slice into hex string
pub fn encode_hex(bytes: &[u8]) -> String {
let mut s = String::with_capacity(bytes.len() * 2);
Expand All @@ -10,7 +9,6 @@ pub fn encode_hex(bytes: &[u8]) -> String {
s
}

// TODO: do we need it?
/// Decodes hex string into bytes vec
pub fn decode_hex(s: &str) -> Option<Vec<u8>> {
(0..s.len())
Expand Down
1 change: 1 addition & 0 deletions packages/neutron-sdk/src/interchain_queries/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ pub mod queries;
pub mod types;
pub mod v045;
pub mod v047;
pub mod hex;

pub use queries::{check_query_type, get_registered_query, query_kv_result};

0 comments on commit 82e4e33

Please sign in to comment.