Skip to content

Commit

Permalink
feat(namada): support bigint proposal id
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jun 18, 2024
1 parent 3ca1c13 commit 5ab094e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/namada/NamadaChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class NamadaChain extends CW.Chain {
fetchProposalCount () {
return this.getConnection().fetchProposalCountImpl()
}
fetchProposalInfo (id: number) {
fetchProposalInfo (id: number|bigint) {
return this.getConnection().fetchProposalInfoImpl(id)
}
fetchEpoch () {
Expand Down
2 changes: 1 addition & 1 deletion packages/namada/NamadaConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class NamadaConnection extends CW.Connection {
fetchProposalCountImpl () {
return Gov.fetchProposalCount(this)
}
fetchProposalInfoImpl (id: number) {
fetchProposalInfoImpl (id: number|bigint) {
return Gov.fetchProposalInfo(this, id)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/namada/NamadaGov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GovernanceParameters {
}
}

export async function fetchProposalInfo (connection: Connection, id: number) {
export async function fetchProposalInfo (connection: Connection, id: number|bigint) {
const proposal = await connection.abciQuery(`/vp/governance/proposal/${id}`)
if (proposal[0] === 0) {
return null
Expand Down

0 comments on commit 5ab094e

Please sign in to comment.