Skip to content

Commit

Permalink
fix(jsonrpc): read simple positional argument in getBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Sep 22, 2023
1 parent 474f2cb commit b9530af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/actors/json_rpc/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ pub async fn get_balance(params: Params) -> JsonRpcResult {
));
};

simple = false;
simple = params.get(1).and_then(Value::as_bool).unwrap_or(false);
} else {
let params: GetBalanceParams = params.parse()?;
pkh = params.pkh;
Expand Down

0 comments on commit b9530af

Please sign in to comment.