Skip to content

Commit

Permalink
Fix import... again
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSnow committed Sep 1, 2015
1 parent 60245cc commit d5e08af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (ImportKey) Execute(state IState, args []string) error {
fa := fct.ValidateFPrivateUserStr(adr)
ec := fct.ValidateECPrivateUserStr(adr)
b,err := hex.DecodeString(adr)
if len(b) != 32 {
if err == nil && len(b) != 32 {
err = fmt.Errorf("wrong length")
}
if fa || ec || err==nil {
Expand Down

0 comments on commit d5e08af

Please sign in to comment.