Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove asserts from bootloader #26

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions system-contracts/bootloader/bootloader.yul
Original file line number Diff line number Diff line change
Expand Up @@ -3205,9 +3205,8 @@ object "Bootloader" {
<!-- @if BOOTLOADER_TYPE=='proved_batch' -->
assertEq(gt(getFrom(innerTxDataOffset), MAX_SYSTEM_CONTRACT_ADDR()), 1, "from in kernel space")
<!-- @endif -->

assertEq(getReserved0(innerTxDataOffset), 0, "reserved0 non zero")
assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
//assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
assertEq(getReserved2(innerTxDataOffset), 0, "reserved2 non zero")
assertEq(getReserved3(innerTxDataOffset), 0, "reserved3 non zero")
assertEq(getFactoryDepsBytesLength(innerTxDataOffset), 0, "factory deps non zero")
Expand All @@ -3230,7 +3229,7 @@ object "Bootloader" {
<!-- @endif -->

assertEq(getReserved0(innerTxDataOffset), 0, "reserved0 non zero")
assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
//assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
assertEq(getReserved2(innerTxDataOffset), 0, "reserved2 non zero")
assertEq(getReserved3(innerTxDataOffset), 0, "reserved3 non zero")
assertEq(getFactoryDepsBytesLength(innerTxDataOffset), 0, "factory deps non zero")
Expand All @@ -3249,7 +3248,7 @@ object "Bootloader" {
assertEq(gt(getFrom(innerTxDataOffset), MAX_SYSTEM_CONTRACT_ADDR()), 1, "from in kernel space")
<!-- @endif -->
assertEq(getReserved0(innerTxDataOffset), 0, "reserved0 non zero")
assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
//assertEq(getReserved1(innerTxDataOffset), 0, "reserved1 non zero")
assertEq(getReserved2(innerTxDataOffset), 0, "reserved2 non zero")
assertEq(getReserved3(innerTxDataOffset), 0, "reserved3 non zero")
}
Expand Down
Loading