Skip to content

Commit

Permalink
fix: pub visibility of util method
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 30, 2024
1 parent 4e7a27d commit 340d358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pop-drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub mod utils {

// This is used to resolve type mismatches between the `AccountId` in the quasi testing
// environment and the contract environment.
fn account_id_from_slice(s: &[u8; 32]) -> pop_api::primitives::AccountId {
pub fn account_id_from_slice(s: &[u8; 32]) -> pop_api::primitives::AccountId {
pop_api::primitives::AccountId::decode(&mut &s[..]).expect("Should be decoded to AccountId")
}

Expand Down

0 comments on commit 340d358

Please sign in to comment.