2017-09-10 00:53:06 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
2017-09-30 22:48:51 -05:00
|
|
|
func (cli *CLI) listAddresses(nodeID string) {
|
|
|
|
wallets, err := NewWallets(nodeID)
|
2017-09-10 00:53:06 -05:00
|
|
|
if err != nil {
|
|
|
|
log.Panic(err)
|
|
|
|
}
|
|
|
|
addresses := wallets.GetAddresses()
|
|
|
|
|
|
|
|
for _, address := range addresses {
|
|
|
|
fmt.Println(address)
|
|
|
|
}
|
|
|
|
}
|