@cryptorubic/web3 0.13.0-alpha.solana-gas.10 → 0.13.0-alpha.solana-gas.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "0.13.0-alpha.solana-gas.10",
3
+ "version": "0.13.0-alpha.solana-gas.11",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -66,10 +66,8 @@ class SolanaAdapter extends abstract_adapter_1.AbstractAdapter {
66
66
  if (err) {
67
67
  if (Array.isArray(err['InstructionError'])) {
68
68
  const [failedInstructionIdx, errorData] = err['InstructionError'];
69
- const failedIxProgrammId = tx.message.staticAccountKeys[failedInstructionIdx];
70
69
  const failedInstructionProgramId = await this.getFailedIxProgramId(tx, failedInstructionIdx);
71
- this.logger?.customLog('FAILED INSTRUCTION PROGRAM ID 1', failedIxProgrammId.toBase58());
72
- this.logger?.customLog('FAILED INSTRUCTION PROGRAM ID 2', failedInstructionProgramId);
70
+ this.logger?.customLog('FAILED INSTRUCTION INFO', { programId: failedInstructionProgramId, errorData });
73
71
  const weirdError = errorData?.Custom === 1;
74
72
  if (weirdError)
75
73
  return defineCuLimit();