Skip to content

Commit df0f47a

Browse files
committed
Remove old type from InstructionError
1 parent 7f94330 commit df0f47a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/rpc-types/src/transaction-error.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type InstructionError =
1010
| 'AccountNotExecutable'
1111
| 'AccountNotRentExempt'
1212
| 'ArithmeticOverflow'
13+
| 'BorshIoError' // SDKv3 has a fieldless `BorshIoError`
1314
| 'BuiltinProgramsMustConsumeComputeUnits'
1415
| 'CallDepth'
1516
| 'ComputationalBudgetExceeded'
@@ -54,8 +55,6 @@ type InstructionError =
5455
| 'UninitializedAccount'
5556
| 'UnsupportedProgramId'
5657
| 'UnsupportedSysvar'
57-
| 'BorshIoError' // SDKv3 has a fieldless `BorshIoError`
58-
| { BorshIoError: string } // SDK pre-v3 has a newtype for `BorshIoError`
5958
| { Custom: CustomProgramError };
6059

6160
type InstructionIndex = number;

0 commit comments

Comments
 (0)