Client: fix command get script code
This commit is contained in:
parent
9da9a8440e
commit
005517e849
@ -131,9 +131,9 @@ let commands () =
|
||||
| Some { code ; storage = _ } ->
|
||||
match Script.force_decode code with
|
||||
| Error errs -> cctxt#error "%a" (Format.pp_print_list ~pp_sep:Format.pp_print_newline Alpha_environment.Error_monad.pp) errs
|
||||
| Ok code ->
|
||||
| Ok (code, _) ->
|
||||
begin cctxt#answer "%a" Michelson_v1_printer.print_expr_unwrapped code >>= fun () ->
|
||||
return ()
|
||||
return_unit
|
||||
end
|
||||
end ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user