Skip to content

Commit d82b542

Browse files
committed
remove pub, to understand code
1 parent b3bfe59 commit d82b542

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

programs/magicblock/src/magic_scheduled_base_intent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl MagicBaseIntent {
148148
}
149149
}
150150

151-
pub fn get_committed_accounts(&self) -> Option<&Vec<CommittedAccount>> {
151+
fn get_committed_accounts(&self) -> Option<&Vec<CommittedAccount>> {
152152
match self {
153153
MagicBaseIntent::BaseActions(_) => None,
154154
MagicBaseIntent::Commit(t) => Some(t.get_committed_accounts()),
@@ -158,7 +158,7 @@ impl MagicBaseIntent {
158158
}
159159
}
160160

161-
pub fn get_committed_accounts_mut(
161+
fn get_committed_accounts_mut(
162162
&mut self,
163163
) -> Option<&mut Vec<CommittedAccount>> {
164164
match self {

programs/magicblock/src/utils/instruction_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ impl InstructionUtils {
105105
Self::into_transaction(&validator_authority(), ix, recent_blockhash)
106106
}
107107

108-
pub(crate) fn scheduled_commit_sent_instruction(
108+
//pub(crate)
109+
fn scheduled_commit_sent_instruction(
109110
magic_block_program: &Pubkey,
110111
validator_authority: &Pubkey,
111112
scheduled_commit_id: u64,

0 commit comments

Comments
 (0)