Skip to content

Commit

Permalink
Update wallet_addEthereumChain.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron authored Oct 8, 2024
1 parent 368fc19 commit 48818fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/RPCMethods/wallet_addEthereumChain.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ const wallet_addEthereumChain = async ({
}
const ticker = nativeCurrency?.symbol || 'ETH';

if (typeof ticker !== 'string' || ticker.length < 2 || ticker.length > 6) {
if (typeof ticker !== 'string' || ticker.length < 1 || ticker.length > 6) {
throw rpcErrors.invalidParams({
message: `Expected 2-6 character string 'nativeCurrency.symbol'. Received:\n${ticker}`,
message: `Expected 1-6 character string 'nativeCurrency.symbol'. Received:\n${ticker}`,
});
}

Expand Down

0 comments on commit 48818fa

Please sign in to comment.