Skip to content

Commit

Permalink
fix: don't convert to cip129 non-drep voters
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Dec 13, 2024
1 parent 3939d71 commit 04bdee4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/governance/proposals/tx-hash/cert-index/votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ async function route(fastify: FastifyInstance) {
gracefulRelease(clientDbSync);

for (const row of rows) {
// Convert voter id to cip129 format
if (!row.voter.startsWith('drep')) {
// Keep non-DRep voter unmodified
continue;
}

// Convert voter id to CIP129 format
const cip129DRep = dbSyncDRepToCIP129({
drep_id: row.voter,
has_script: row.voter_has_script,
Expand Down

0 comments on commit 04bdee4

Please sign in to comment.