diff --git a/lnwire/lnwire.go b/lnwire/lnwire.go index 67e4629c..e4d88d9b 100644 --- a/lnwire/lnwire.go +++ b/lnwire/lnwire.go @@ -178,7 +178,7 @@ func writeElement(w io.Writer, element interface{}) error { // Then write each out sequentially. for _, element := range e { - if err := writeElement(w, &element); err != nil { + if err := writeElement(w, element); err != nil { return err } }