Skip to content

Commit

Permalink
less garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed May 9, 2024
1 parent 75416a5 commit 08783f2
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,16 @@ hprop_constitutional_committee = H.integrationWorkspace "constitutional-committe
DRep.createVotingTxBody
execConfig epochStateView sbe work "vote-tx-body" voteFiles wallet0

-- FIXME: remove dependence of signTx on PaymentKeyPair
let poolNodePaymentKeyPair = PaymentKeyPair
{ paymentSKey = poolNodeKeysColdSkey poolKeys
, paymentVKey = error "unused"
}
drepSKeys = map (defaultDRepKeyPair . snd) drepVotes
signingKeys = paymentKeyInfoPair wallet0:poolNodePaymentKeyPair:drepSKeys
voteTxFp <- DRep.signTx
execConfig cEra gov "signed-vote-tx" voteTxBodyFp
(paymentKeyInfoPair wallet0:[defaultDRepKeyPair n | (_, n) <- drepVotes])
execConfig cEra gov "signed-vote-tx" voteTxBodyFp signingKeys

DRep.submitTx execConfig cEra voteTxFp

_ <- waitForEpochs epochStateView (L.EpochInterval 2)
Expand Down

0 comments on commit 08783f2

Please sign in to comment.