Skip to content

Commit

Permalink
feat: validate recipient address (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
euharrison authored Jan 8, 2025
1 parent 3597549 commit e1e3032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/namadillo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@namada/namadillo",
"version": "1.1.11",
"version": "1.1.12",
"description": "Namadillo",
"repository": "https://github.com/anoma/namada-interface/",
"author": "Heliax Dev <[email protected]>",
Expand Down
4 changes: 4 additions & 0 deletions apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ export const NamadaTransfer: React.FC = () => {
invariant(chainId, "Chain ID is undefined");
invariant(selectedAsset, "No asset is selected");
invariant(gasConfig, "No gas config");
invariant(
sourceAddress !== customAddress,
"The recipient address must differ from the sender address"
);

const txResponse = await performTransfer({ memo });

Expand Down

1 comment on commit e1e3032

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.