Skip to content

Commit

Permalink
chore: fix some typos in comments (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: laterlaugh <[email protected]>
  • Loading branch information
laterlaugh authored Apr 13, 2024
1 parent 7cdb058 commit 24411c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/proxy/beacon/PublicBeaconProxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions test/diamond/DiamondERC721.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions test/libs/data-structures/SparseMerkleTree.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 24411c2

Please sign in to comment.