From ea6fbc579d3f3434ca8205f1783ab63b123a045c Mon Sep 17 00:00:00 2001 From: EmelyanenkoK Date: Wed, 10 Feb 2021 12:49:29 +0300 Subject: [PATCH] Fix old hash parsing in create-config-proposal.fif --- crypto/smartcont/create-config-proposal.fif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/smartcont/create-config-proposal.fif b/crypto/smartcont/create-config-proposal.fif index 18036d0d4..8dbfdd27e 100644 --- a/crypto/smartcont/create-config-proposal.fif +++ b/crypto/smartcont/create-config-proposal.fif @@ -16,7 +16,7 @@ begin-options "Creates a critical parameter change proposal" option-help "x" "--expires-in" { parse-int =: expire-in } short-long-option-arg "Sets proposal expiration time in seconds (default " expire-in (.) $+ +")" option-help - "H" "--old-hash" { (hex-number) not abort"256-bit hex number expected as hash" =: old-hash } + "H" "--old-hash" { (hex-number) 1 = not .s abort"256-bit hex number expected as hash" =: old-hash } short-long-option-arg "Sets the required cell hash of existing parameter value (0 means no value)" option-help "h" "--help" { usage } short-long-option