Skip to content

Commit

Permalink
feat(indexing): add instruction logs for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
vovacodes committed May 8, 2023
1 parent 4b9784d commit c874d6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/multisig/src/instructions/batch_add_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ impl BatchAddTransaction<'_> {
// Increment the batch size.
batch.size = batch.size.checked_add(1).expect("overflow");

// Logs for indexing.
msg!("batch index: {}", batch.index);
msg!("batch size: {}", batch.size);

Ok(())
}
}
3 changes: 3 additions & 0 deletions programs/multisig/src/instructions/batch_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ impl BatchCreate<'_> {

multisig.invariant()?;

// Logs for indexing.
msg!("batch index: {}", index);

Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ impl ConfigTransactionCreate<'_> {

multisig.invariant()?;

// Logs for indexing.
msg!("transaction index: {}", transaction_index);

Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ impl VaultTransactionCreate<'_> {

multisig.invariant()?;

// Logs for indexing.
msg!("transaction index: {}", transaction_index);

Ok(())
}
}
Expand Down

0 comments on commit c874d6a

Please sign in to comment.