adm: Fix panic on negative value #1127
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func SetPolicyCmd(cmd *cobra.Command, args []string) error {
|
|||
|
||||
value, err := strconv.ParseUint(v, 10, 32)
|
||||
if err != nil {
|
||||
return fmt.Errorf("can't parse parameter value '%s': %w", args[1], err)
|
||||
return fmt.Errorf("can't parse parameter value '%s': %w", args[i], err)
|
||||
}
|
||||
|
||||
emit.AppCall(bw.BinWriter, policy.Hash, "set"+k, callflag.All, int64(value))
|
||||
|
|
Loading…
Reference in a new issue