requiring user-quoted Hook Parameter values

This commit is contained in:
Vaclav Barta
2022-04-21 09:02:59 +02:00
parent 587f09ec00
commit c690334f92
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ export const SetHookDialog: React.FC<{ account: IAccount }> = ({ account }) => {
)} )}
/> />
<Input <Input
placeholder="Parameter value" placeholder="Value (hex-quoted)"
{...register( {...register(
`HookParameters.${index}.HookParameter.HookParameterValue` `HookParameters.${index}.HookParameter.HookParameterValue`
)} )}

View File

@@ -80,7 +80,7 @@ export const deployHook = async (
)?.map(aa => ({ )?.map(aa => ({
HookParameter: { HookParameter: {
HookParameterName: toHex(aa.HookParameter.HookParameterName || ""), HookParameterName: toHex(aa.HookParameter.HookParameterName || ""),
HookParameterValue: toHex(aa.HookParameter.HookParameterValue || ""), HookParameterValue: aa.HookParameter.HookParameterValue || "",
}, },
})); }));
// const filteredHookGrants = HookGrants.filter(hg => hg.HookGrant.Authorize || hg.HookGrant.HookHash).map(hg => { // const filteredHookGrants = HookGrants.filter(hg => hg.HookGrant.Authorize || hg.HookGrant.HookHash).map(hg => {