Skip to content

Commit

Permalink
fix: query only relevant bonds to see if it's possible to vote (#1407)
Browse files Browse the repository at this point in the history
* fix: query only relevant bonds to see if it's possible to vote

* chore: bump minor
  • Loading branch information
mateuszjasiuk authored Dec 16, 2024
1 parent 1faf1f6 commit 10cbe8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/namadillo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@namada/namadillo",
"version": "1.0.5",
"version": "1.0.6",
"description": "Namadillo",
"repository": "https://github.com/anoma/namada-interface/",
"author": "Heliax Dev <[email protected]>",
Expand All @@ -10,7 +10,7 @@
"@chain-registry/client": "^1.53.5",
"@cosmjs/encoding": "^0.32.3",
"@keplr-wallet/types": "^0.12.136",
"@namada/indexer-client": "0.0.31",
"@namada/indexer-client": "1.0.2",
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/query-core": "^5.40.0",
"@tanstack/react-query": "^5.40.0",
Expand Down
4 changes: 3 additions & 1 deletion apps/namadillo/src/atoms/proposals/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ export const canVoteAtom = atomFamily((proposalStartEpoch: bigint) =>
enabled: account.isSuccess,
queryFn: async () => {
const all_bonds = await api.apiV1PosBondAddressGet(
account.data!.address
account.data!.address,
undefined,
Number(proposalStartEpoch)
);

return all_bonds.data.results.reduce(
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3613,12 +3613,12 @@ __metadata:
languageName: unknown
linkType: soft

"@namada/indexer-client@npm:0.0.31":
version: 0.0.31
resolution: "@namada/indexer-client@npm:0.0.31"
"@namada/indexer-client@npm:1.0.2":
version: 1.0.2
resolution: "@namada/indexer-client@npm:1.0.2"
dependencies:
axios: "npm:^1.6.1"
checksum: 45bf4c05f590f3daee46aa217a5bcf7cd0ee08f3a0dcf8f6a89f8458786ffa99035d2cad8b87c7b28080aeca34e10cfd7b3eee905a2e26f740e43ca883c1252c
checksum: 536807e94c788c97e844c5153ddcc031ef80665867aee741df87622f4a9e39d8668909f66c88688cb37993ec7bf605bf97710bcb6bfb2597b7feda2c40dc6633
languageName: node
linkType: hard

Expand Down Expand Up @@ -3659,7 +3659,7 @@ __metadata:
"@cosmjs/encoding": "npm:^0.32.3"
"@eslint/js": "npm:^9.9.1"
"@keplr-wallet/types": "npm:^0.12.136"
"@namada/indexer-client": "npm:0.0.31"
"@namada/indexer-client": "npm:1.0.2"
"@playwright/test": "npm:^1.24.1"
"@release-it/keep-a-changelog": "npm:^5.0.0"
"@svgr/webpack": "npm:^6.5.1"
Expand Down

1 comment on commit 10cbe8d

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.