Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jul 25, 2023
1 parent fe45b46 commit 78b4640
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions l1-contracts/src/core/libraries/Decoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,6 @@ import {Hash} from "@aztec/core/libraries/Hash.sol";
* |--- |--- | ---
*/
library Decoder {
// Where the start of trees metadata begins in the block
uint256 constant START_TREES_BLOCK_HEADER_OFFSET = 0x80;

// Where the end of trees metadata begns in the block
uint256 constant END_TREES_BLOCK_HEADER_OFFSET = 0x01c0;

// The size of the block header elements
uint256 constant TREES_HEADER_SIZE = 0x140;

// Where the metadata ends and the block data begins.
uint256 constant METADATA_OFFSET = 0x0300;

struct ArrayLengths {
uint256 commitmentCount;
uint256 nullifierCount;
Expand Down Expand Up @@ -123,6 +111,19 @@ library Decoder {
bytes32 unencryptedLogsHashKernel2;
}

// DECODING OFFSET CONSTANTS
// Where the start of trees metadata begins in the block
uint256 private constant START_TREES_BLOCK_HEADER_OFFSET = 0x80;

// Where the end of trees metadata begns in the block
uint256 private constant END_TREES_BLOCK_HEADER_OFFSET = 0x01c0;

// The size of the block header elements
uint256 private constant TREES_HEADER_SIZE = 0x140;

// Where the metadata ends and the block data begins.
uint256 private constant METADATA_OFFSET = 0x0300;

/**
* @notice Decodes the inputs and computes values to check state against
* @param _l2Block - The L2 block calldata.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class SoloBlockBuilder implements BlockBuilder {
endTreeOfHistoricContractTreeRootsSnapshot,
endL1ToL2MessageTreeSnapshot,
endTreeOfHistoricL1ToL2MessageTreeRootsSnapshot,
endHistoricBlocksTreeSnapshot
endHistoricBlocksTreeSnapshot,
} = circuitsOutput;

// Collect all new nullifiers, commitments, and contracts from all txs in this block
Expand Down

0 comments on commit 78b4640

Please sign in to comment.