Skip to content

Commit

Permalink
fix: validator votes rank
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Jan 29, 2025
1 parent 6090a78 commit 6257a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { categorizeAbi } from "./utils";
export const EVM_CONTRACT_INTERACT_PATH_NAME =
"/evm-contracts/[contractAddress]";

export enum InteractType {
enum InteractType {
Read = "read",
Write = "write",
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/proposal/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const getProposalValidatorVotes = async (
return {
items: parsed.items.map<ProposalValidatorVote>((item, idx) => ({
...item,
rank: idx + 1,
rank: offset + idx + 1,
})),
total: parsed.total,
};
Expand Down

0 comments on commit 6257a7a

Please sign in to comment.