Skip to content

Commit

Permalink
feat: add temporary Sui chain info handling
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Jan 27, 2025
1 parent e10ee2f commit b1402ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/maestro/src/server/routers/axelarjsSDK/getChainInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ export const getChainInfo = publicProcedure

return output;
} catch (error) {

// Remove this once we have sui supported in the urlMap from the axelarjs-sdk
if(input.axelarChainId === "sui"){
return {
id: "sui",
chainName: "sui",
blockConfirmations: 1,
estimatedWaitTimeInMinutes: 1,
}
}
// If we get a TRPC error, we throw it
if (error instanceof TRPCError) {
throw error;
Expand Down

0 comments on commit b1402ea

Please sign in to comment.