From aaa5ef81cf75454d1c337dc3de03d12480849ad1 Mon Sep 17 00:00:00 2001 From: tincho Date: Tue, 1 Sep 2020 14:57:40 -0300 Subject: [PATCH] Fix typos (#2343) --- DOCUMENTATION.md | 2 +- contracts/GSN/GSNRecipient.sol | 4 ++-- contracts/GSN/IRelayRecipient.sol | 2 +- contracts/token/ERC1155/ERC1155.sol | 8 ++++---- contracts/token/ERC1155/IERC1155.sol | 2 +- contracts/token/ERC721/ERC721.sol | 2 +- contracts/token/ERC721/IERC721.sol | 2 +- contracts/utils/README.adoc | 2 +- test/helpers/sign.js | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 50c83fa2982..ca39e51db53 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -10,7 +10,7 @@ program that extracts the API Reference from source code. The [`docs.openzeppelin.com`](https://github.com/OpenZeppelin/docs.openzeppelin.com) repository hosts the configuration for the entire site, which includes -documetation for all of the OpenZeppelin projects. +documentation for all of the OpenZeppelin projects. To run the docs locally you should run `npm run docs:watch` on this repository. diff --git a/contracts/GSN/GSNRecipient.sol b/contracts/GSN/GSNRecipient.sol index a719ab87fc3..c69d53bbc71 100644 --- a/contracts/GSN/GSNRecipient.sol +++ b/contracts/GSN/GSNRecipient.sol @@ -115,7 +115,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context { /** * @dev See `IRelayRecipient.preRelayedCall`. * - * This function should not be overriden directly, use `_preRelayedCall` instead. + * This function should not be overridden directly, use `_preRelayedCall` instead. * * * Requirements: * @@ -138,7 +138,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context { /** * @dev See `IRelayRecipient.postRelayedCall`. * - * This function should not be overriden directly, use `_postRelayedCall` instead. + * This function should not be overridden directly, use `_postRelayedCall` instead. * * * Requirements: * diff --git a/contracts/GSN/IRelayRecipient.sol b/contracts/GSN/IRelayRecipient.sol index be0ffe56fc3..4ecaf1e25e3 100644 --- a/contracts/GSN/IRelayRecipient.sol +++ b/contracts/GSN/IRelayRecipient.sol @@ -53,7 +53,7 @@ interface IRelayRecipient { * * Returns a value to be passed to {postRelayedCall}. * - * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call + * {preRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call * will not be executed, but the recipient will still be charged for the transaction's cost. */ function preRelayedCall(bytes calldata context) external returns (bytes32); diff --git a/contracts/token/ERC1155/ERC1155.sol b/contracts/token/ERC1155/ERC1155.sol index 2e39cbb423b..6cb5ca97829 100644 --- a/contracts/token/ERC1155/ERC1155.sol +++ b/contracts/token/ERC1155/ERC1155.sol @@ -28,7 +28,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { // Mapping from account to operator approvals mapping (address => mapping(address => bool)) private _operatorApprovals; - // Used as the URI for all token types by relying on ID substition, e.g. https://token-cdn-domain/{id}.json + // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /* @@ -66,7 +66,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies - * on the token type ID substituion mechanism + * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the @@ -208,10 +208,10 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { /** * @dev Sets a new URI for all token types, by relying on the token type ID - * substituion mechanism + * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * - * By this mechanism, any occurence of the `\{id\}` substring in either the + * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * diff --git a/contracts/token/ERC1155/IERC1155.sol b/contracts/token/ERC1155/IERC1155.sol index be606beebca..5262661eb1a 100644 --- a/contracts/token/ERC1155/IERC1155.sol +++ b/contracts/token/ERC1155/IERC1155.sol @@ -12,7 +12,7 @@ import "../../introspection/IERC165.sol"; */ interface IERC1155 is IERC165 { /** - * @dev Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`. + * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); diff --git a/contracts/token/ERC721/ERC721.sol b/contracts/token/ERC721/ERC721.sol index 6094c15310f..fc04f1ddedc 100644 --- a/contracts/token/ERC721/ERC721.sol +++ b/contracts/token/ERC721/ERC721.sol @@ -254,7 +254,7 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. - * implement alternative mecanisms to perform token transfer, such as signature-based. + * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * diff --git a/contracts/token/ERC721/IERC721.sol b/contracts/token/ERC721/IERC721.sol index 16f7aca87a2..5e7d20e3500 100644 --- a/contracts/token/ERC721/IERC721.sol +++ b/contracts/token/ERC721/IERC721.sol @@ -9,7 +9,7 @@ import "../../introspection/IERC165.sol"; */ interface IERC721 is IERC165 { /** - * @dev Emitted when `tokenId` token is transfered from `from` to `to`. + * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); diff --git a/contracts/utils/README.adoc b/contracts/utils/README.adoc index 8995a1858c8..3773c411fb1 100644 --- a/contracts/utils/README.adoc +++ b/contracts/utils/README.adoc @@ -7,7 +7,7 @@ Miscellaneous contracts and libraries containing utility functions you can use t Security tools include: - * {Pausable}: provides a simple way to halt activity in your contracts (often in reponse to an external threat). + * {Pausable}: provides a simple way to halt activity in your contracts (often in response to an external threat). * {ReentrancyGuard}: protects you from https://blog.openzeppelin.com/reentrancy-after-istanbul/[reentrant calls]. The {Address}, {Arrays} and {Strings} libraries provide more operations related to these native data types, while {SafeCast} adds ways to safely convert between the different signed and unsigned numeric types. diff --git a/test/helpers/sign.js b/test/helpers/sign.js index 6cb57f4eb75..b4a9710c3a4 100644 --- a/test/helpers/sign.js +++ b/test/helpers/sign.js @@ -38,7 +38,7 @@ const getSignFor = (contract, signer) => (redeemer, methodName, methodArgs = []) redeemer, ]; - const REAL_SIGNATURE_SIZE = 2 * 65; // 65 bytes in hexadecimal string legnth + const REAL_SIGNATURE_SIZE = 2 * 65; // 65 bytes in hexadecimal string length const PADDED_SIGNATURE_SIZE = 2 * 96; // 96 bytes in hexadecimal string length const DUMMY_SIGNATURE = `0x${web3.utils.padLeft('', REAL_SIGNATURE_SIZE)}`;