Skip to content

Commit 04bdee4

Browse files
committed
fix: don't convert to cip129 non-drep voters
1 parent 3939d71 commit 04bdee4

File tree

1 file changed

+6
-1
lines changed
  • src/routes/governance/proposals/tx-hash/cert-index

1 file changed

+6
-1
lines changed

src/routes/governance/proposals/tx-hash/cert-index/votes.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ async function route(fastify: FastifyInstance) {
3737
gracefulRelease(clientDbSync);
3838

3939
for (const row of rows) {
40-
// Convert voter id to cip129 format
40+
if (!row.voter.startsWith('drep')) {
41+
// Keep non-DRep voter unmodified
42+
continue;
43+
}
44+
45+
// Convert voter id to CIP129 format
4146
const cip129DRep = dbSyncDRepToCIP129({
4247
drep_id: row.voter,
4348
has_script: row.voter_has_script,

0 commit comments

Comments
 (0)