Check empty salt
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user