Skip to content

Commit cad258c

Browse files
authored
Merge pull request #252 from tchajed/fix-typos
Fix several spelling mistakes
2 parents 6458d62 + 650e5e4 commit cad258c

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

src/contracts/mocks/nf-token-metadata-enumerable-mock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ contract NFTokenMetadataEnumerableMock is
118118
}
119119

120120
/**
121-
* @dev Assignes a new NFT to an address.
121+
* @dev Assigns a new NFT to an address.
122122
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
123123
* @param _to Address to wich we want to add the NFT.
124124
* @param _tokenId Which NFT we want to add.

src/contracts/tokens/erc721.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ interface ERC721
8282
* address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero
8383
* address. Throws if `_tokenId` is not a valid NFT.
8484
* @notice The caller is responsible to confirm that `_to` is capable of receiving NFTs or else
85-
* they mayb be permanently lost.
85+
* they may be permanently lost.
8686
* @param _from The current owner of the NFT.
8787
* @param _to The new owner.
8888
* @param _tokenId The NFT to transfer.
@@ -134,8 +134,8 @@ interface ERC721
134134
returns (uint256);
135135

136136
/**
137-
* @dev Returns the address of the owner of the NFT. NFTs assigned to zero address are considered
138-
* invalid, and queries about them do throw.
137+
* @dev Returns the address of the owner of the NFT. NFTs assigned to the zero address are
138+
* considered invalid, and queries about them do throw.
139139
* @param _tokenId The identifier for an NFT.
140140
* @return Address of _tokenId owner.
141141
*/

src/contracts/tokens/nf-token-enumerable.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ contract NFTokenEnumerable is
176176
}
177177

178178
/**
179-
* @dev Assignes a new NFT to an address.
179+
* @dev Assigns a new NFT to an address.
180180
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
181181
* @param _to Address to wich we want to add the NFT.
182182
* @param _tokenId Which NFT we want to add.
@@ -198,7 +198,7 @@ contract NFTokenEnumerable is
198198

199199
/**
200200
* @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable
201-
* extension to remove double storage(gas optimization) of owner nft count.
201+
* extension to remove double storage(gas optimization) of owner NFT count.
202202
* @param _owner Address for whom to query the count.
203203
* @return Number of _owner NFTs.
204204
*/

src/contracts/tokens/nf-token.sol

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ contract NFToken is
2929
string constant IS_OWNER = "003008";
3030

3131
/**
32-
* @dev Magic value of a smart contract that can recieve NFT.
32+
* @dev Magic value of a smart contract that can receive NFT.
3333
* Equal to: bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")).
3434
*/
3535
bytes4 internal constant MAGIC_ON_ERC721_RECEIVED = 0x150b7a02;
@@ -159,7 +159,7 @@ contract NFToken is
159159
* address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero
160160
* address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.
161161
* @notice The caller is responsible to confirm that `_to` is capable of receiving NFTs or else
162-
* they maybe be permanently lost.
162+
* they may be permanently lost.
163163
* @param _from The current owner of the NFT.
164164
* @param _to The new owner.
165165
* @param _tokenId The NFT to transfer.
@@ -241,8 +241,8 @@ contract NFToken is
241241
}
242242

243243
/**
244-
* @dev Returns the address of the owner of the NFT. NFTs assigned to zero address are considered
245-
* invalid, and queries about them do throw.
244+
* @dev Returns the address of the owner of the NFT. NFTs assigned to the zero address are
245+
* considered invalid, and queries about them do throw.
246246
* @param _tokenId The identifier for an NFT.
247247
* @return _owner Address of _tokenId owner.
248248
*/
@@ -295,7 +295,7 @@ contract NFToken is
295295
}
296296

297297
/**
298-
* @dev Actually preforms the transfer.
298+
* @dev Actually performs the transfer.
299299
* @notice Does NO checks.
300300
* @param _to Address of a new owner.
301301
* @param _tokenId The NFT that is being transferred.
@@ -362,7 +362,7 @@ contract NFToken is
362362
/**
363363
* @dev Removes a NFT from owner.
364364
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
365-
* @param _from Address from wich we want to remove the NFT.
365+
* @param _from Address from which we want to remove the NFT.
366366
* @param _tokenId Which NFT we want to remove.
367367
*/
368368
function _removeNFToken(
@@ -378,9 +378,9 @@ contract NFToken is
378378
}
379379

380380
/**
381-
* @dev Assignes a new NFT to owner.
381+
* @dev Assigns a new NFT to owner.
382382
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
383-
* @param _to Address to wich we want to add the NFT.
383+
* @param _to Address to which we want to add the NFT.
384384
* @param _tokenId Which NFT we want to add.
385385
*/
386386
function _addNFToken(
@@ -398,7 +398,7 @@ contract NFToken is
398398

399399
/**
400400
* @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable
401-
* extension to remove double storage (gas optimization) of owner nft count.
401+
* extension to remove double storage (gas optimization) of owner NFT count.
402402
* @param _owner Address for whom to query the count.
403403
* @return Number of _owner NFTs.
404404
*/

src/tests/tokens/nf-token.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ spec.test('throws when trying to safe transfers NFT from owner to a smart contra
330330
await ctx.reverts(() => nftoken.instance.methods.safeTransferFrom(bob, nftoken.receipt._address, id1).send({ from: bob }));
331331
});
332332

333-
spec.test('corectly safe transfers NFT from owner to smart contract that can recieve NFTs', async (ctx) => {
333+
spec.test('corectly safe transfers NFT from owner to smart contract that can receive NFTs', async (ctx) => {
334334
const nftoken = ctx.get('nfToken');
335335
const owner = ctx.get('owner');
336336
const bob = ctx.get('bob');
@@ -353,7 +353,7 @@ spec.test('corectly safe transfers NFT from owner to smart contract that can rec
353353
ctx.is(ownerOfId1, tokenReceiver.receipt._address);
354354
});
355355

356-
spec.test('corectly safe transfers NFT from owner to smart contract that can recieve NFTs with data', async (ctx) => {
356+
spec.test('corectly safe transfers NFT from owner to smart contract that can receive NFTs with data', async (ctx) => {
357357
const nftoken = ctx.get('nfToken');
358358
const owner = ctx.get('owner');
359359
const bob = ctx.get('bob');

0 commit comments

Comments
 (0)