From 24411c2701b9de258afa8483a8ff140f59f789b9 Mon Sep 17 00:00:00 2001 From: laterlaugh <166613655+laterlaugh@users.noreply.github.com> Date: Sat, 13 Apr 2024 20:25:28 +0800 Subject: [PATCH] chore: fix some typos in comments (#98) Signed-off-by: laterlaugh --- contracts/proxy/beacon/PublicBeaconProxy.sol | 2 +- test/diamond/DiamondERC721.test.ts | 4 ++-- test/libs/data-structures/SparseMerkleTree.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/proxy/beacon/PublicBeaconProxy.sol b/contracts/proxy/beacon/PublicBeaconProxy.sol index cb1e88ed..85977e22 100644 --- a/contracts/proxy/beacon/PublicBeaconProxy.sol +++ b/contracts/proxy/beacon/PublicBeaconProxy.sol @@ -8,7 +8,7 @@ import {BeaconProxy} from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol" * * The helper BeaconProxy that can be deployed by the factories. * - * Note that the external `implementation()` function is added to the contract to provide compatability with + * Note that the external `implementation()` function is added to the contract to provide compatibility with * Etherscan. This means that the implementation contract must not have such a function declared. */ contract PublicBeaconProxy is BeaconProxy { diff --git a/test/diamond/DiamondERC721.test.ts b/test/diamond/DiamondERC721.test.ts index fbc9a28b..d2438707 100644 --- a/test/diamond/DiamondERC721.test.ts +++ b/test/diamond/DiamondERC721.test.ts @@ -136,7 +136,7 @@ describe("DiamondERC721 and InitializableStorage", () => { await expect(erc721.mint(OWNER.address, 1)).to.be.revertedWith("ERC721: token already minted"); }); - it("should not mint token if the reciever is a contract and doesn't implement onERC721Received correctly", async () => { + it("should not mint token if the receiver is a contract and doesn't implement onERC721Received correctly", async () => { const contract1 = await (await ethers.getContractFactory("DiamondERC721Mock")).deploy(); await expect(erc721.mint(await contract1.getAddress(), 1)).to.be.revertedWith( @@ -265,7 +265,7 @@ describe("DiamondERC721 and InitializableStorage", () => { ); }); - it("should not transfer token if the reciever is a contract and doesn't implement onERC721Received", async () => { + it("should not transfer token if the receiver is a contract and doesn't implement onERC721Received", async () => { await erc721.mint(OWNER.address, 1); const contract = await (await ethers.getContractFactory("DiamondERC721Mock")).deploy(); diff --git a/test/libs/data-structures/SparseMerkleTree.test.ts b/test/libs/data-structures/SparseMerkleTree.test.ts index 6d5f2639..6313d085 100644 --- a/test/libs/data-structures/SparseMerkleTree.test.ts +++ b/test/libs/data-structures/SparseMerkleTree.test.ts @@ -273,7 +273,7 @@ describe("SparseMerkleTree", () => { expect(await merkleTree.getUintNodesCount()).to.equal(6); }); - it("should not remove non-existant leaves", async () => { + it("should not remove non-existent leaves", async () => { const keys = [7n, 1n, 5n]; for (let key of keys) { @@ -319,7 +319,7 @@ describe("SparseMerkleTree", () => { } }); - it("should not update non-existant leaves", async () => { + it("should not update non-existent leaves", async () => { const keys = [7n, 1n, 5n]; for (let key of keys) {