@solana/errors 4.0.0 → 5.0.0-canary-20251023185005
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/dist/cli.mjs +1 -1
- package/dist/index.browser.cjs +1 -6
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +1 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +1 -6
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +1 -6
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +1 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/context.d.ts +0 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/instruction-error.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -661,7 +661,7 @@ function getSolanaErrorFromRpcError({ errorCodeBaseOffset, getErrorContext, orde
|
|
|
661
661
|
|
|
662
662
|
// src/instruction-error.ts
|
|
663
663
|
var ORDERED_ERROR_NAMES = [
|
|
664
|
-
// Keep synced with RPC source: https://github.com/anza-xyz/
|
|
664
|
+
// Keep synced with RPC source: https://github.com/anza-xyz/solana-sdk/blob/master/instruction-error/src/lib.rs
|
|
665
665
|
// If this list ever gets too large, consider implementing a compression strategy like this:
|
|
666
666
|
// https://gist.github.com/steveluscher/aaa7cbbb5433b1197983908a40860c47
|
|
667
667
|
"GenericError",
|
|
@@ -736,11 +736,6 @@ function getSolanaErrorFromInstructionError(index, instructionError) {
|
|
|
736
736
|
code: Number(rpcErrorContext),
|
|
737
737
|
index: numberIndex
|
|
738
738
|
};
|
|
739
|
-
} else if (errorCode === SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR) {
|
|
740
|
-
return {
|
|
741
|
-
encodedData: rpcErrorContext,
|
|
742
|
-
index: numberIndex
|
|
743
|
-
};
|
|
744
739
|
}
|
|
745
740
|
return { index: numberIndex };
|
|
746
741
|
},
|