Skip to content

Commit

Permalink
Copy PCZT proposal data
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaR committed Dec 15, 2024
1 parent 00d418e commit 93aab00
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ class KeystoneProposalRepositoryImpl(
account = accountDataSource.getSelectedAccount(),
proposal = getTransactionProposal().proposal
)
val pcztWithProofs = proposalDataSource.addProofsToPczt(proposalPczt)
// Copy the original PZCT proposal data so we pass one copy to the KeyStone device and the second one to the
// Rust Backend
val proposalPcztCopy = Pczt(proposalPczt.toByteArray().copyOf())

val pcztWithProofs = proposalDataSource.addProofsToPczt(proposalPcztCopy)

this@KeystoneProposalRepositoryImpl.proposalPczt = proposalPczt
this@KeystoneProposalRepositoryImpl.pcztWithProofs = pcztWithProofs
}
Expand Down

0 comments on commit 93aab00

Please sign in to comment.