Skip to content

Commit

Permalink
fixup! feat(orchestration): add queryBalance to stakeAtom
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed May 1, 2024
1 parent 2e91597 commit 1afadae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/orchestration/src/exos/stakingAccountKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const prepareStakingAccountKit = (baggage, makeRecorderKit, zcf) => {
const { balance } = QueryBalanceResponse.decode(
decodeBase64(result.key),
);
if (!balance) throw Fail`Error parsing result ${result}`;
if (!balance) throw Fail`Result lacked balance key: ${result}`;
// TODO, return Amount? cast amount to bigint? #9211
return balance;
},
Expand Down

0 comments on commit 1afadae

Please sign in to comment.