Skip to content

Commit

Permalink
chore: added second suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: vetalcore <vetalcore@gmail.com>
  • Loading branch information
danielmain and vetalcore committed Apr 25, 2024
1 parent 5cb1acc commit 44c9ede
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/hardware-ledger/src/transformers/votingProcedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ export const mapVotingProcedures = (votingProcedures: Cardano.VotingProcedures |
txHashHex: vote.actionId.id
},
votingProcedure: {
anchor: vote.votingProcedure.anchor
? {
hashHex: vote.votingProcedure.anchor.dataHash,
url: vote.votingProcedure.anchor.url // Map dataHash to hashHex
}
: null,
...(vote.votingProcedure.anchor && {
anchor: {
hashHex: vote.votingProcedure.anchor.dataHash,
url: vote.votingProcedure.anchor.url
}
})
vote: mapVoteOption(vote.votingProcedure.vote)
}
})
Expand Down

0 comments on commit 44c9ede

Please sign in to comment.