Skip to content

Commit ea4b4f7

Browse files
committed
fix CreateCommitDposTx
1 parent 36b1243 commit ea4b4f7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/tools.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ func WhiteNode(cmd *cobra.Command, args []string) error {
170170
}
171171

172172
func CreateCommitDposTx(cmd *cobra.Command, args []string) error {
173-
poly := poly_go_sdk.NewPolySdk()
173+
poly, _, err := GetPolyAndAccByCmd(cmd)
174+
if err != nil {
175+
return err
176+
}
174177
tx, err := poly.Native.Nm.NewCommitDposTransaction()
175178
if err != nil {
176179
return err

0 commit comments

Comments
 (0)