1
    'Program log: Instruction: PositionSwap',
    'Program log: a_to_b: true',
    'Program log: amount: 0',
    ... 15 more items
  ],
  programErrorStack: ProgramErrorStack { stack: [ [PublicKey], [PublicKey] ] }
}

I'd really like to know what those ... 15 more items are..

1 Answer 1

0

Simple fix:

} catch (e){
  console.log(e)
}
} catch (e){
  console.log(e.logs.slice(-50))
}
1
  • consider annotating the code to help future users better understand how this solution answers the question
    – trent.sol
    Commented Jul 18, 2022 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.