Skip to content

Commit

Permalink
chore: Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
CCristi committed Jun 13, 2024
1 parent 38cd0d5 commit b0d16be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("errors", () => {
expect(result).toEqual({
decodedMessage: "Slippage tolerance exceeded",
errorCode: 6001,
name: "SlippageToleranceExceeded",
kind: "SlippageToleranceExceeded",
programId: "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export function decodeProgramError(idls: IdlsMap, programError: ProgramError): P
return {
...programError,
decodedMessage: parsedError.data,
name: parsedError.name,
kind: parsedError.name,
};
}
4 changes: 2 additions & 2 deletions packages/explorerkit-server/src/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -910,14 +910,14 @@ describe("Server API Tests", () => {
{
decodedMessage: "Slippage tolerance exceeded",
errorCode: 6001,
name: "SlippageToleranceExceeded",
kind: "SlippageToleranceExceeded",
programId: "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
},
null,
{
decodedMessage: "Invalid calculation",
errorCode: 6002,
name: "InvalidCalculation",
kind: "InvalidCalculation",
programId: "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/explorerkit-server/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ProgramError {
programId: string;
errorCode?: number | null;
decodedMessage?: string;
name?: string | null;
kind?: string | null;
}

export interface Account {
Expand Down

0 comments on commit b0d16be

Please sign in to comment.