Skip to content

Commit

Permalink
Fix typo in aect_contracts.erl (#4314)
Browse files Browse the repository at this point in the history
* Fix typo in aect_contracts.erl

* Don't allow old contracts in Ceres GAs
  • Loading branch information
hanssv committed Mar 26, 2024
1 parent fea63d5 commit 222f7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/aecontract/src/aect_contracts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ is_legal_version_at_protocol_(create, #{vm := ?VM_FATE_SOPHIA_2, abi := ?ABI_FAT
end;
is_legal_version_at_protocol_(create, #{vm := ?VM_FATE_SOPHIA_3, abi := ?ABI_FATE_SOPHIA_1}, Protocol) ->
case Protocol of
P when P < ?IRIS_PROTOCOL_VSN -> false;
P when P < ?CERES_PROTOCOL_VSN -> false;
?CERES_PROTOCOL_VSN -> true;
P when P > ?CERES_PROTOCOL_VSN -> true
end;
Expand Down
2 changes: 1 addition & 1 deletion apps/aega/src/aega_attach_tx.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ is_legal_version_at_protocol(#{vm := VMVersion, abi := ABIVersion}, Protocol) ->
P when P == ?IRIS_PROTOCOL_VSN, ABIVersion == ?ABI_FATE_SOPHIA_1 ->
VMVersion == ?VM_FATE_SOPHIA_2;
P when P >= ?CERES_PROTOCOL_VSN, ABIVersion == ?ABI_FATE_SOPHIA_1 ->
VMVersion >= ?VM_FATE_SOPHIA_2;
VMVersion >= ?VM_FATE_SOPHIA_3;
_ ->
false
end.
Expand Down

0 comments on commit 222f7f1

Please sign in to comment.