From 315bb65ddedcb72ac5bcd8d1763b219b399c4bc7 Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:49:29 +0700 Subject: [PATCH] fix: comments --- crates/pop-drink/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/pop-drink/src/lib.rs b/crates/pop-drink/src/lib.rs index 6b055c8..d3a3d8c 100644 --- a/crates/pop-drink/src/lib.rs +++ b/crates/pop-drink/src/lib.rs @@ -10,12 +10,12 @@ pub mod devnet { use super::*; pub use pop_runtime_devnet::{BuildStorage, Runtime}; - // Types used in the pop runtime. + /// Types used in the pop runtime. pub type Balance = BalanceFor; pub type AccountId = AccountIdFor; - // This is used to resolve type mismatches between the `AccountId` in the quasi testing - // environment and the contract environment. + /// This is used to resolve type mismatches between the `AccountId` in the quasi testing + /// environment and the contract environment. pub fn account_id_from_slice(s: &AccountId) -> pop_api::primitives::AccountId { let account: [u8; 32] = s.clone().into(); utils::account_id_from_slice(&account) @@ -48,7 +48,7 @@ pub mod utils { Ok(result.unwrap()) } - // Call a contract method and decode the returned data. + /// Call a contract method and decode the returned data. pub fn call( session: &mut Session, func_name: &str, @@ -77,13 +77,13 @@ pub mod utils { } } - // This is used to resolve type mismatches between the `AccountId` in the quasi testing - // environment and the contract environment. + /// This is used to resolve type mismatches between the `AccountId` in the quasi testing + /// environment and the contract environment. 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") } - // Get the last event from pallet contracts. + /// Get the last event from pallet contracts. pub fn last_contract_event(session: &Session) -> Option> where S: Sandbox,