We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36b1243 commit ea4b4f7Copy full SHA for ea4b4f7
1 file changed
lib/tools.go
@@ -170,7 +170,10 @@ func WhiteNode(cmd *cobra.Command, args []string) error {
170
}
171
172
func CreateCommitDposTx(cmd *cobra.Command, args []string) error {
173
- poly := poly_go_sdk.NewPolySdk()
+ poly, _, err := GetPolyAndAccByCmd(cmd)
174
+ if err != nil {
175
+ return err
176
+ }
177
tx, err := poly.Native.Nm.NewCommitDposTransaction()
178
if err != nil {
179
return err
0 commit comments