Skip to content

Commit

Permalink
fix metho name in update firmware ref fibercrypto#165
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Denis committed Feb 5, 2020
1 parent 06acbc9 commit 4c0e96d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/firmware_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/sha256"
"fmt"
"github.com/fibercrypto/skywallet-go/src/skywallet"
messages "github.com/fibercrypto/skywallet-protob/go"
"io/ioutil"

gcli "github.com/urfave/cli"
Expand Down Expand Up @@ -34,7 +35,8 @@ func firmwareUpdate() gcli.Command {
if err != nil {
return
}
err = sq.FirmwareUpload(firmware, sha256.Sum256(firmware[0x100:]))
msg, err := sq.UploadFirmware(firmware, sha256.Sum256(firmware[0x100:]))
handleFinalResponse(msg, err, "unable to update firmware", messages.MessageType_MessageType_Success)
if err != nil {
log.Error(err)
return
Expand Down

0 comments on commit 4c0e96d

Please sign in to comment.