Skip to content

Commit

Permalink
Check empty salt
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Jul 26, 2023
1 parent d6c1686 commit d49baa2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ const MsgInstantiateContract2Form = ({
}

try {
if (!salt) {
throw new Error("Salt is required");
}

fromHex(salt);
} catch (e) {
setSaltError(e instanceof Error ? e.message : "Salt needs to be an hexadecimal string");
Expand Down

0 comments on commit d49baa2

Please sign in to comment.