Skip to content

Commit

Permalink
fix typo in err 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 113a1be commit b84b4ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/skywallet/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func NewDriver(deviceType DeviceType, emulatorAddress ...string) (*Driver, error
if len(emulatorAddress) == 0 {
emulatorAddress = []string{"127.0.0.1"}
} else if len(emulatorAddress) > 1 {
return nil, WrrInvalidArgCountForEmulatorIpAddress
return nil, ErrInvalidArgCountForEmulatorIpAddress
}
udpBus, err := usb.InitUDP([]int{EmulatorPort}, emulatorAddress[0])
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions src/skywallet/skywallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var (
ErrDeviceTypeEmulator = errors.New("device type cannot be emulator")
// ErrInvalidWordCount is returned if word count is not valid mnemonic word length
ErrInvalidWordCount = errors.New("word count must be 12 or 24")
// WrrInvalidArgCountForEmulatorIpAddress emulator ip address is the only one expected argument for emulatorAddress
WrrInvalidArgCountForEmulatorIpAddress = errors.New("emulator ip address is the only one expected argument for emulatorAddress")
// ErrInvalidArgCountForEmulatorIpAddress emulator ip address is the only one expected argument for emulatorAddress
ErrInvalidArgCountForEmulatorIpAddress = errors.New("emulator ip address is the only one expected argument for emulatorAddress")
// ErrNoDeviceConnected is returned if no device is connected to the system
ErrNoDeviceConnected = errors.New("no device connected")
// ErrInvalidWalletType a valid wallet type should be specified
Expand Down

0 comments on commit b84b4ab

Please sign in to comment.