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