Skip to content

Commit

Permalink
Handle the sequence of latest vesting account #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Mar 4, 2021
1 parent 52f6812 commit 10aa47f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cosmos/src/account/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class BaseAccount implements Account {
// But, this can be different according to the version of cosmos-sdk.
// So, anyway, try to parse it by some ways...
const baseVestingAccount =
value.BaseVestingAccount || value.baseVestingAccount;
value.BaseVestingAccount ||
value.baseVestingAccount ||
value.base_vesting_account;
if (baseVestingAccount) {
value =
baseVestingAccount.BaseAccount ||
Expand Down

1 comment on commit 10aa47f

@jbibla
Copy link

@jbibla jbibla commented on 10aa47f Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 🙌 🙌 🙌 🙌 🙌 🙌

thank you!

Please sign in to comment.