Fix the spec for compute_state_layout
This commit is contained in:
parent
5046c08b9f
commit
431e983940
@ -475,7 +475,7 @@ compute_state_layout(Env = #{ context := {contract_def, _} }, "state", Type) ->
|
||||
Env#{ state_layout => Layout };
|
||||
compute_state_layout(Env, _, _) -> Env.
|
||||
|
||||
-spec compute_state_layout(state_reg(), ftype()) -> {state_reg(), state_layout() | [state_layout()]}.
|
||||
-spec compute_state_layout(state_reg(), ftype() | [ftype()]) -> {state_reg(), state_layout() | [state_layout()]}.
|
||||
compute_state_layout(R, {tuple, [T]}) ->
|
||||
compute_state_layout(R, T);
|
||||
compute_state_layout(R, {tuple, Ts}) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user