Skip to content

Commit

Permalink
refactor(): Fix typo and a misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Xearty committed Aug 28, 2024
1 parent 775a9bd commit ed6633d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub mod serde_bool_array_to_hex_string_nested {
type Value = Array<Array<bool, M>, N>;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
formatter.write_str("a sequence of sequences of 0s or 1s")
formatter.write_str("a sequence of hex strings")
}

fn visit_seq<A>(self, mut seq: A) -> Result<Self::Value, A::Error>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract contract BalanceVerifier is Ownable, IBalanceVerifier {
/// @param _slot The slot to get the block root for.
/// @return blockRoot The beacon block root of the given slot.
/// @dev BEACON_ROOTS returns a block root for a given parent block's timestamp. To get the block root for slot
/// N, you use the timestamp of slot N+1. If N+1 is not avaliable, you use the timestamp of slot N+2, and
/// N, you use the timestamp of slot N+1. If N+1 is not available, you use the timestamp of slot N+2, and
// so on.
function _findBlockRoot(uint256 _slot) internal view returns (bytes32) {
uint256 currBlockTimestamp = GENESIS_BLOCK_TIMESTAMP + ((_slot + 1) * 12);
Expand Down

0 comments on commit ed6633d

Please sign in to comment.