Skip to content

Commit

Permalink
debug thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Aursen committed Jul 16, 2024
1 parent 748f959 commit dd3a308
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/thread/src/instructions/thread_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ pub fn handler(
let system_program = &ctx.accounts.system_program;
let thread = &mut ctx.accounts.thread;

msg!("Thread THEO LEN: {}", Thread::min_space(&instructions)?);

// Initialize the thread
let bump = ctx.bumps.thread;
thread.authority = authority.key();
Expand All @@ -65,6 +67,8 @@ pub fn handler(
thread.rate_limit = u64::MAX;
thread.trigger = trigger;

msg!("Thread LEN: {}", thread.try_to_vec()?.len());

// Transfer SOL from payer to the thread.
transfer(
CpiContext::new(
Expand Down

0 comments on commit dd3a308

Please sign in to comment.