Skip to content

Commit

Permalink
Fix instruments stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EquilateralDelta committed Nov 23, 2023
1 parent da19954 commit 9a111ab
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion psyoptions-american-instrument/program/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct ValidateData<'info> {
pub struct PrepareToSettle<'info> {
/// protocol provided
#[account(signer)]
pub protocol: Account<'info, ProtocolState>,
pub protocol: Box<Account<'info, ProtocolState>>,
pub rfq: Box<Account<'info, Rfq>>,
pub response: Account<'info, Response>,

Expand Down
2 changes: 1 addition & 1 deletion psyoptions-european-instrument/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub struct ValidateData<'info> {
pub struct PrepareToSettle<'info> {
/// protocol provided
#[account(signer)]
pub protocol: Account<'info, ProtocolState>,
pub protocol: Box<Account<'info, ProtocolState>>,
pub rfq: Box<Account<'info, Rfq>>,
pub response: Account<'info, Response>,

Expand Down
1 change: 0 additions & 1 deletion rfq/program/src/interfaces/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ fn call_instrument<'a, 'info: 'a>(

let account_metas: Vec<AccountMeta> = accounts.iter().map(|x| x.to_account_meta()).collect();

msg!("Data: {:?}", data);
let instruction = Instruction {
program_id: program.key(),
accounts: account_metas,
Expand Down
2 changes: 1 addition & 1 deletion spot-instrument/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ pub struct ValidateData<'info> {
pub struct PrepareToSettle<'info> {
/// protocol provided
#[account(signer)]
pub protocol: Account<'info, ProtocolState>,
pub protocol: Box<Account<'info, ProtocolState>>,
pub rfq: Box<Account<'info, Rfq>>,
pub response: Account<'info, Response>,

Expand Down

0 comments on commit 9a111ab

Please sign in to comment.