19 lines
244 B
Go
19 lines
244 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
)
|
||
|
|
||
|
func (cli *CLI) listAddresses() {
|
||
|
wallets, err := NewWallets()
|
||
|
if err != nil {
|
||
|
log.Panic(err)
|
||
|
}
|
||
|
addresses := wallets.GetAddresses()
|
||
|
|
||
|
for _, address := range addresses {
|
||
|
fmt.Println(address)
|
||
|
}
|
||
|
}
|