diff --git a/short_channel_id.go b/short_channel_id.go index ef87f7b..8ce0b94 100644 --- a/short_channel_id.go +++ b/short_channel_id.go @@ -12,7 +12,8 @@ type ShortChannelID uint64 func NewShortChannelIDFromString(channelID string) (*ShortChannelID, error) { if channelID == "" { - return nil, nil + c := ShortChannelID(0) + return &c, nil } fields := strings.Split(channelID, "x")