Skip to content

Commit

Permalink
fix: add translator for EXCEEDS_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Dec 28, 2022
1 parent cd91e38 commit 3e8890a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export function translateContractError(message: string) {
return 'Sale is not started yet.';
} else if (message.includes('NOT_ALLOWLISTED')) {
return 'This wallet address is not allowlisted.';
} else if (message.includes('EXCEEDS_MAX')) {
return 'Max allocation reached, this wallet cannot mint anymore.';
}

return message;
Expand Down

0 comments on commit 3e8890a

Please sign in to comment.