Skip to content

Commit ca55393

Browse files
committed
fix(rpc): handle nil value in preapply result
1 parent f84e791 commit ca55393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rpc.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ defmodule Tezex.Rpc do
239239

240240
defp do_preapply_operation(%Rpc{} = rpc, payload) do
241241
case post(rpc, "/blocks/head/helpers/preapply/operations", payload) do
242-
{:ok, [%{"contents" => preapplied_operations}]} ->
242+
{:ok, [%{"contents" => preapplied_operations}]} when is_list(preapplied_operations) ->
243243
applied? =
244244
Enum.all?(
245245
preapplied_operations,

0 commit comments

Comments
 (0)