Skip to content

Commit

Permalink
docs: added empty line and comment
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Oct 18, 2023
1 parent 124d9e7 commit a9f5fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/solidity/address/AssemblyAddress.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ contract AssemblyAddress {
}
}
}

3 changes: 3 additions & 0 deletions test/solidity/address/AssemblyAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ describe('AssemblyAddress tests', () => {
assemblyAddressContract.address
)

// @notice Remove the '0x' prefix from the expected contract bytecode, then calculate the length in bytes
// @notice Since each hexadeimal character represents 4 bits, and each bute is represented by 2 hexadecimal characters.
// Therefore, the length of bytecode in bytes is half of the length of the bytecode in hexadecimal characters.
const expectedContractCodeSize =
expectedContractBytecode.replace('0x', '').length / 2

Expand Down

0 comments on commit a9f5fd3

Please sign in to comment.