Skip to content

Commit

Permalink
fix: fix address validation for solana-devnet (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaszheng authored Oct 3, 2024
1 parent bd21ff3 commit 8fed37a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/forms/AccountManagementForms/WithdrawForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export const WithdrawForm = () => {
const prefix = exchange ? 'noble' : grazChainPrefix;
return isValidAddress({
address: toAddress,
network: chainIdStr === 'solana' ? 'solana' : prefix ? 'cosmos' : 'evm',
network:
chainIdStr === 'solana' || chainIdStr === 'solana-devnet'
? 'solana'
: prefix
? 'cosmos'
: 'evm',
prefix,
});
}, [exchange, toAddress, chainIdStr]);
Expand Down

0 comments on commit 8fed37a

Please sign in to comment.