Skip to content

Commit

Permalink
docs(protocol): fix LibBlockHeader comment on EIP-1559
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed Mar 9, 2023
1 parent 9cb1740 commit 5c62b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/contracts/libs/LibBlockHeader.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ library LibBlockHeader {
uint256 extraCapacity
) internal pure returns (bytes[] memory list) {
if (header.baseFeePerGas == 0) {
// non-EIP11559 transaction
// non-EIP-1159 transaction
list = new bytes[](15 + extraCapacity);
} else {
// EIP1159 transaction
// EIP-1159 transaction
list = new bytes[](16 + extraCapacity);
}
list[0] = LibRLPWriter.writeHash(header.parentHash);
Expand All @@ -69,7 +69,7 @@ library LibBlockHeader {
// as [8]byte when hashing the block.
list[14] = LibRLPWriter.writeBytes(abi.encodePacked(header.nonce));
if (header.baseFeePerGas != 0) {
// non-EIP11559 transaction
// EIP-1159 transaction
list[15] = LibRLPWriter.writeUint(header.baseFeePerGas);
}
}
Expand Down

0 comments on commit 5c62b37

Please sign in to comment.