From ea4b4f7c8c1754db44498c1b2cbaaab4095f00ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=BF=97=E5=BC=BA?= <652732310@qq.com> Date: Mon, 15 Nov 2021 14:55:16 +0800 Subject: [PATCH] fix CreateCommitDposTx --- lib/tools.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tools.go b/lib/tools.go index 27f70c4..b0fff84 100644 --- a/lib/tools.go +++ b/lib/tools.go @@ -170,7 +170,10 @@ func WhiteNode(cmd *cobra.Command, args []string) error { } func CreateCommitDposTx(cmd *cobra.Command, args []string) error { - poly := poly_go_sdk.NewPolySdk() + poly, _, err := GetPolyAndAccByCmd(cmd) + if err != nil { + return err + } tx, err := poly.Native.Nm.NewCommitDposTransaction() if err != nil { return err