From 3c7bc0c08ccd7000521db538c8bb06b6a0a8c292 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Tue, 9 Apr 2024 21:31:14 +0800 Subject: [PATCH] Problem: sdk 0.50 cmd is not aligned --- pystarport/cosmoscli.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pystarport/cosmoscli.py b/pystarport/cosmoscli.py index 6a47b2d..4546667 100644 --- a/pystarport/cosmoscli.py +++ b/pystarport/cosmoscli.py @@ -211,7 +211,14 @@ def block_time(self): def balances(self, addr, height=0): return json.loads( self.raw( - "query", "bank", "balances", addr, height=height, home=self.data_dir + "query", + "bank", + "balances", + addr, + height=height, + output="json", + home=self.data_dir, + node=self.node_rpc, ) )["balances"]