From 67a573b46a23fe592d314e944e0986ac4cdf1258 Mon Sep 17 00:00:00 2001 From: daleboy <785909868@qq.com> Date: Thu, 15 Oct 2020 22:30:54 +0800 Subject: [PATCH] Update cli.go update the function getBalance based on the update of the function NewBlockchain. --- cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.go b/cli.go index 1270c6e..7f6bb74 100644 --- a/cli.go +++ b/cli.go @@ -18,7 +18,7 @@ func (cli *CLI) createBlockchain(address string) { } func (cli *CLI) getBalance(address string) { - bc := NewBlockchain(address) + bc := NewBlockchain() defer bc.db.Close() balance := 0