We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef8d431 commit faae69dCopy full SHA for faae69d
src/lib/mina_block/legacy_format.ml
@@ -41,6 +41,10 @@ module User_command = struct
41
42
let to_yojson : t -> Yojson.Safe.t = function
43
| User_command.Poly.Signed_command _ as tx ->
44
+ (* ~proof_to_yojson is unused when Helper.to_yojson is applied to a
45
+ Signed_command; the unreachable_code function (which takes a
46
+ value of the uninhabited Nothing.t type) is a compile-time proof
47
+ of this fact through the type system. *)
48
Helper.to_yojson ~proof_to_yojson:Nothing.unreachable_code tx
49
| User_command.Poly.Zkapp_command { fee_payer; memo; account_updates }
50
->
0 commit comments