@solana/errors
Advanced tools
Comparing version 2.0.0-canary-20241105084618 to 2.0.0-canary-20241105084944
import { SolanaError } from './error'; | ||
export declare function getSolanaErrorFromInstructionError(index: number, instructionError: string | { | ||
export declare function getSolanaErrorFromInstructionError(index: bigint | number, instructionError: string | { | ||
[key: string]: unknown; | ||
}): SolanaError; | ||
//# sourceMappingURL=instruction-error.d.ts.map |
import { SolanaError } from './error'; | ||
interface RpcErrorResponse { | ||
code: number; | ||
code: bigint | number; | ||
data?: unknown; | ||
@@ -50,4 +50,4 @@ message: string; | ||
} | ||
export declare function getSolanaErrorFromJsonRpcError({ code, data, message }: RpcErrorResponse): SolanaError; | ||
export declare function getSolanaErrorFromJsonRpcError({ code: rawCode, data, message }: RpcErrorResponse): SolanaError; | ||
export {}; | ||
//# sourceMappingURL=json-rpc-error.d.ts.map |
{ | ||
"name": "@solana/errors", | ||
"version": "2.0.0-canary-20241105084618", | ||
"version": "2.0.0-canary-20241105084944", | ||
"description": "Throw, identify, and decode Solana JavaScript errors", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1349415
6165