Skip to content

Commit

Permalink
chore: renamed erc20 wallet not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 4, 2024
1 parent 8270f9f commit 3d7ae82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/generate-erc20-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function generateErc20PermitSignature(context: Context, username: s
throw new Error("User was not found");
}
if (!walletAddress) {
const errorMessage = "ERC 20 Permit generation error: Wallet was not found";
const errorMessage = "ERC20 Permit generation error: Wallet not found";
logger.error(errorMessage);
throw new Error(errorMessage);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/generate-erc20-permit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ describe("generateErc20PermitSignature", () => {
await generateErc20PermitSignature(context, SPENDER, amount);
}).rejects.toThrow();

expect(context.logger.error).toHaveBeenCalledWith("ERC 20 Permit generation error: Wallet was not found");
expect(context.logger.error).toHaveBeenCalledWith("ERC20 Permit generation error: Wallet not found");
});
});

0 comments on commit 3d7ae82

Please sign in to comment.