Merge pull request #174 from eqlabs/feat/req-bin-hook-params

requiring user-quoted Hook Parameter values
This commit is contained in:
Vaclav Barta
2022-04-22 13:25:48 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -80,7 +80,7 @@ export const deployHook = async (
)?.map(aa => ({
HookParameter: {
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 => {