Skip to content

Commit 60ace90

Browse files
authored
Update the comment linking to the InstructionError type in the Solana SDK (#975)
This moved.
1 parent 17e3ece commit 60ace90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/errors/src/instruction-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SolanaError } from './error';
77
import { getSolanaErrorFromRpcError } from './rpc-enum-errors';
88

99
const ORDERED_ERROR_NAMES = [
10-
// Keep synced with RPC source: https://github.com/anza-xyz/agave/blob/master/sdk/program/src/instruction.rs
10+
// Keep synced with RPC source: https://github.com/anza-xyz/solana-sdk/blob/master/instruction-error/src/lib.rs
1111
// If this list ever gets too large, consider implementing a compression strategy like this:
1212
// https://gist.github.com/steveluscher/aaa7cbbb5433b1197983908a40860c47
1313
'GenericError',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type CustomProgramError = number;
22

3-
// Keep synced with RPC source: https://github.com/anza-xyz/agave/blob/master/sdk/program/src/instruction.rs
3+
// Keep synced with RPC source: https://github.com/anza-xyz/solana-sdk/blob/master/instruction-error/src/lib.rs
44
type InstructionError =
55
| 'AccountAlreadyInitialized'
66
| 'AccountBorrowFailed'

0 commit comments

Comments
 (0)