Skip to content

Commit 10cbe8d

Browse files
fix: query only relevant bonds to see if it's possible to vote (#1407)
* fix: query only relevant bonds to see if it's possible to vote * chore: bump minor
1 parent 1faf1f6 commit 10cbe8d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

apps/namadillo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@namada/namadillo",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Namadillo",
55
"repository": "https://github.com/anoma/namada-interface/",
66
"author": "Heliax Dev <info@heliax.dev>",
@@ -10,7 +10,7 @@
1010
"@chain-registry/client": "^1.53.5",
1111
"@cosmjs/encoding": "^0.32.3",
1212
"@keplr-wallet/types": "^0.12.136",
13-
"@namada/indexer-client": "0.0.31",
13+
"@namada/indexer-client": "1.0.2",
1414
"@tailwindcss/container-queries": "^0.1.1",
1515
"@tanstack/query-core": "^5.40.0",
1616
"@tanstack/react-query": "^5.40.0",

apps/namadillo/src/atoms/proposals/atoms.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export const canVoteAtom = atomFamily((proposalStartEpoch: bigint) =>
127127
enabled: account.isSuccess,
128128
queryFn: async () => {
129129
const all_bonds = await api.apiV1PosBondAddressGet(
130-
account.data!.address
130+
account.data!.address,
131+
undefined,
132+
Number(proposalStartEpoch)
131133
);
132134

133135
return all_bonds.data.results.reduce(

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3613,12 +3613,12 @@ __metadata:
36133613
languageName: unknown
36143614
linkType: soft
36153615

3616-
"@namada/indexer-client@npm:0.0.31":
3617-
version: 0.0.31
3618-
resolution: "@namada/indexer-client@npm:0.0.31"
3616+
"@namada/indexer-client@npm:1.0.2":
3617+
version: 1.0.2
3618+
resolution: "@namada/indexer-client@npm:1.0.2"
36193619
dependencies:
36203620
axios: "npm:^1.6.1"
3621-
checksum: 45bf4c05f590f3daee46aa217a5bcf7cd0ee08f3a0dcf8f6a89f8458786ffa99035d2cad8b87c7b28080aeca34e10cfd7b3eee905a2e26f740e43ca883c1252c
3621+
checksum: 536807e94c788c97e844c5153ddcc031ef80665867aee741df87622f4a9e39d8668909f66c88688cb37993ec7bf605bf97710bcb6bfb2597b7feda2c40dc6633
36223622
languageName: node
36233623
linkType: hard
36243624

@@ -3659,7 +3659,7 @@ __metadata:
36593659
"@cosmjs/encoding": "npm:^0.32.3"
36603660
"@eslint/js": "npm:^9.9.1"
36613661
"@keplr-wallet/types": "npm:^0.12.136"
3662-
"@namada/indexer-client": "npm:0.0.31"
3662+
"@namada/indexer-client": "npm:1.0.2"
36633663
"@playwright/test": "npm:^1.24.1"
36643664
"@release-it/keep-a-changelog": "npm:^5.0.0"
36653665
"@svgr/webpack": "npm:^6.5.1"

0 commit comments

Comments
 (0)