Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
It's me, CI committed Nov 2, 2023
1 parent 57ce675 commit 8692d18
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
12 changes: 11 additions & 1 deletion src/app/cli/src/init/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,17 @@ let pending_snark_work =
Currency.Amount.Signed.of_fee
(to_signed_fee_exn fee_excess_left.sign
fee_excess_left.feeMagnitude )
; supply_increase = w.supply_increase
; supply_change =
(let sgn : Sgn.t =
match w.supply_change.sign with
| `PLUS ->
Pos
| `MINUS ->
Neg
in
Currency.Amount.Signed.create
~magnitude:w.supply_change.amountMagnitude ~sgn
)
; source_first_pass_ledger_hash =
w.source_first_pass_ledger_hash
; target_first_pass_ledger_hash =
Expand Down
8 changes: 5 additions & 3 deletions src/app/cli/src/init/graphql_queries.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,18 @@ query pendingSnarkWork {
feeMagnitude
}
}
supply_change: supplyChange {
sign
fee_magnitude: feeMagnitude
supply_change : supplyChange {
sign
amountMagnitude
}
work_id: workId
}
}
}
|}]

module Foo = Pending_snark_work

module Set_coinbase_receiver =
[%graphql
{|
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cli_lib/graphql_types.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Pending_snark_work = struct
type t =
{ work_id : int
; fee_excess : Currency.Amount.Signed.t
; supply_increase : Currency.Amount.t
; supply_change : Currency.Amount.Signed.t
; source_first_pass_ledger_hash : Mina_base.Frozen_ledger_hash.t
; target_first_pass_ledger_hash : Mina_base.Frozen_ledger_hash.t
; source_second_pass_ledger_hash : Mina_base.Frozen_ledger_hash.t
Expand Down

0 comments on commit 8692d18

Please sign in to comment.