Skip to content

Commit 24411c2

Browse files
authored
chore: fix some typos in comments (#98)
Signed-off-by: laterlaugh <manziwenzhai@sina.cn>
1 parent 7cdb058 commit 24411c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

contracts/proxy/beacon/PublicBeaconProxy.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {BeaconProxy} from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol"
88
*
99
* The helper BeaconProxy that can be deployed by the factories.
1010
*
11-
* Note that the external `implementation()` function is added to the contract to provide compatability with
11+
* Note that the external `implementation()` function is added to the contract to provide compatibility with
1212
* Etherscan. This means that the implementation contract must not have such a function declared.
1313
*/
1414
contract PublicBeaconProxy is BeaconProxy {

test/diamond/DiamondERC721.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe("DiamondERC721 and InitializableStorage", () => {
136136
await expect(erc721.mint(OWNER.address, 1)).to.be.revertedWith("ERC721: token already minted");
137137
});
138138

139-
it("should not mint token if the reciever is a contract and doesn't implement onERC721Received correctly", async () => {
139+
it("should not mint token if the receiver is a contract and doesn't implement onERC721Received correctly", async () => {
140140
const contract1 = await (await ethers.getContractFactory("DiamondERC721Mock")).deploy();
141141

142142
await expect(erc721.mint(await contract1.getAddress(), 1)).to.be.revertedWith(
@@ -265,7 +265,7 @@ describe("DiamondERC721 and InitializableStorage", () => {
265265
);
266266
});
267267

268-
it("should not transfer token if the reciever is a contract and doesn't implement onERC721Received", async () => {
268+
it("should not transfer token if the receiver is a contract and doesn't implement onERC721Received", async () => {
269269
await erc721.mint(OWNER.address, 1);
270270

271271
const contract = await (await ethers.getContractFactory("DiamondERC721Mock")).deploy();

test/libs/data-structures/SparseMerkleTree.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ describe("SparseMerkleTree", () => {
273273
expect(await merkleTree.getUintNodesCount()).to.equal(6);
274274
});
275275

276-
it("should not remove non-existant leaves", async () => {
276+
it("should not remove non-existent leaves", async () => {
277277
const keys = [7n, 1n, 5n];
278278

279279
for (let key of keys) {
@@ -319,7 +319,7 @@ describe("SparseMerkleTree", () => {
319319
}
320320
});
321321

322-
it("should not update non-existant leaves", async () => {
322+
it("should not update non-existent leaves", async () => {
323323
const keys = [7n, 1n, 5n];
324324

325325
for (let key of keys) {

0 commit comments

Comments
 (0)