Skip to content

Commit

Permalink
withdraw should be Pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalmechanism committed Jun 24, 2024
1 parent 9b3e5ae commit 8c89f84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/aiken/transaction.ak
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub type Transaction {
mint: Value,
// ^ minted value is now back to a value
certificates: List<Certificate>,
withdrawals: Dict<StakeCredential, Lovelace>,
withdrawals: Pairs<StakeCredential, Lovelace>,
validity_range: ValidityRange,
extra_signatories: List<VerificationKeyHash>,
redeemers: Pairs<ScriptPurpose, Redeemer>,
Expand All @@ -114,6 +114,7 @@ pub type Transaction {
id: TransactionId,
// new fields for v3
votes: Dict<Voter, Dict<GovernanceActionId, Vote>>,
// ^ Does this need to be pairs?
proposal_procedures: List<ProposalProcedure>,
current_treasury_amount: Option<Lovelace>,
treasury_donation: Option<Lovelace>,
Expand Down Expand Up @@ -141,7 +142,7 @@ pub fn placeholder() -> Transaction {
fee: 0,
mint: value.zero(),
certificates: [],
withdrawals: dict.new(),
withdrawals: [],
validity_range: interval.everything(),
extra_signatories: [],
redeemers: [],
Expand Down

0 comments on commit 8c89f84

Please sign in to comment.