Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxianBoy committed Mar 18, 2024
1 parent d42f707 commit b8babe1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootloader/test_infra/src/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn test_hook_as_string(hook_param: U256) -> String {
}

fn test_hook_as_int_or_hex(hook_param: U256) -> String {
// For long data, it is better to use hex-encoding for greater readibility
// For long data, it is better to use hex-encoding for greater readability
if hook_param > U256::from(u64::max_value()) {
let mut bytes = [0u8; 32];
hook_param.to_big_endian(&mut bytes);
Expand Down
2 changes: 1 addition & 1 deletion contracts/SystemContext.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ contract SystemContext is ISystemContext, ISystemContextDeprecated, ISystemContr

VirtualBlockUpgradeInfo memory currentVirtualBlockUpgradeInfo = virtualBlockUpgradeInfo;

// Due to virtual blocks upgrade, we'll have to use the following logic for retreiving the blockhash:
// Due to virtual blocks upgrade, we'll have to use the following logic for retrieving the blockhash:
// 1. If the block number is out of the 256-block supported range, return 0.
// 2. If the block was created before the upgrade for the virtual blocks (i.e. there we used to use hashes of the batches),
// we return the hash of the batch.
Expand Down
4 changes: 2 additions & 2 deletions test/KnownCodesStorage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("KnownCodesStorage tests", function () {
);
});

it("incorrectly fomatted bytecode hash failed to call", async () => {
it("incorrectly formatted bytecode hash failed to call", async () => {
await expect(
knownCodesStorage.connect(compressorAccount).markBytecodeAsPublished(INCORRECTLY_FORMATTED_HASH)
).to.be.revertedWith("Incorrectly formatted bytecodeHash");
Expand All @@ -78,7 +78,7 @@ describe("KnownCodesStorage tests", function () {
).to.be.revertedWith("Code length in words must be odd");
});

it("successfuly marked", async () => {
it("successfully marked", async () => {
await expect(knownCodesStorage.connect(compressorAccount).markBytecodeAsPublished(BYTECODE_HASH_1))
.to.emit(knownCodesStorage, "MarkedAsKnown")
.withArgs(BYTECODE_HASH_1.toLowerCase(), false)
Expand Down

0 comments on commit b8babe1

Please sign in to comment.