2017-09-10 00:53:06 -05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2017-09-30 22:48:51 -05:00
|
|
|
func (cli *CLI) createWallet(nodeID string) {
|
|
|
|
wallets, _ := NewWallets(nodeID)
|
2017-09-10 00:53:06 -05:00
|
|
|
address := wallets.CreateWallet()
|
2017-09-30 22:53:26 -05:00
|
|
|
wallets.SaveToFile(nodeID)
|
2017-09-10 00:53:06 -05:00
|
|
|
|
|
|
|
fmt.Printf("Your new address: %s\n", address)
|
|
|
|
}
|