Skip to content

Commit

Permalink
Fix --code-hash won't set on secretcli tx compute --generate-only
Browse files Browse the repository at this point in the history
Co-authored-by: Itzik Grossman <[email protected]>
Co-authored-by: Guy Tabak <[email protected]>
  • Loading branch information
3 people committed Sep 22, 2020
1 parent 247c3b8 commit 741217a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/compute/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func ExecuteContractCmd(cdc *codec.Codec) *cobra.Command {
return fmt.Errorf("missing flag --%s. To create an offline transaction, you must specify path to the enclave key", flagIoMasterKey)
}

codeHash := viper.GetString(flagCodeHash)
codeHash = viper.GetString(flagCodeHash)
if codeHash == "" {
return fmt.Errorf("missing flag --%s. To create an offline transaction, you must set the target contract's code hash", flagCodeHash)
}
Expand Down

0 comments on commit 741217a

Please sign in to comment.