Unverified Commit aaa5ef81 by tincho Committed by GitHub

Fix typos (#2343)

parent cb791a1b
...@@ -10,7 +10,7 @@ program that extracts the API Reference from source code. ...@@ -10,7 +10,7 @@ program that extracts the API Reference from source code.
The [`docs.openzeppelin.com`](https://github.com/OpenZeppelin/docs.openzeppelin.com) The [`docs.openzeppelin.com`](https://github.com/OpenZeppelin/docs.openzeppelin.com)
repository hosts the configuration for the entire site, which includes 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 To run the docs locally you should run `npm run docs:watch` on this
repository. repository.
...@@ -115,7 +115,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context { ...@@ -115,7 +115,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context {
/** /**
* @dev See `IRelayRecipient.preRelayedCall`. * @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: * * Requirements:
* *
...@@ -138,7 +138,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context { ...@@ -138,7 +138,7 @@ abstract contract GSNRecipient is IRelayRecipient, Context {
/** /**
* @dev See `IRelayRecipient.postRelayedCall`. * @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: * * Requirements:
* *
......
...@@ -53,7 +53,7 @@ interface IRelayRecipient { ...@@ -53,7 +53,7 @@ interface IRelayRecipient {
* *
* Returns a value to be passed to {postRelayedCall}. * 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. * will not be executed, but the recipient will still be charged for the transaction's cost.
*/ */
function preRelayedCall(bytes calldata context) external returns (bytes32); function preRelayedCall(bytes calldata context) external returns (bytes32);
......
...@@ -28,7 +28,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { ...@@ -28,7 +28,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
// Mapping from account to operator approvals // Mapping from account to operator approvals
mapping (address => mapping(address => bool)) private _operatorApprovals; 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; string private _uri;
/* /*
...@@ -66,7 +66,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { ...@@ -66,7 +66,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
* @dev See {IERC1155MetadataURI-uri}. * @dev See {IERC1155MetadataURI-uri}.
* *
* This implementation returns the same URI for *all* token types. It relies * 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]. * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
* *
* Clients calling this function must replace the `\{id\}` substring with the * Clients calling this function must replace the `\{id\}` substring with the
...@@ -208,10 +208,10 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { ...@@ -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 * @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]. * 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 * URI or any of the amounts in the JSON file at said URI will be replaced by
* clients with the token type ID. * clients with the token type ID.
* *
......
...@@ -12,7 +12,7 @@ import "../../introspection/IERC165.sol"; ...@@ -12,7 +12,7 @@ import "../../introspection/IERC165.sol";
*/ */
interface IERC1155 is IERC165 { 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); event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
......
...@@ -254,7 +254,7 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable ...@@ -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`. * `_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. * 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: * Requirements:
* *
......
...@@ -9,7 +9,7 @@ import "../../introspection/IERC165.sol"; ...@@ -9,7 +9,7 @@ import "../../introspection/IERC165.sol";
*/ */
interface IERC721 is IERC165 { 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); event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
......
...@@ -7,7 +7,7 @@ Miscellaneous contracts and libraries containing utility functions you can use t ...@@ -7,7 +7,7 @@ Miscellaneous contracts and libraries containing utility functions you can use t
Security tools include: 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]. * {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. 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.
......
...@@ -38,7 +38,7 @@ const getSignFor = (contract, signer) => (redeemer, methodName, methodArgs = []) ...@@ -38,7 +38,7 @@ const getSignFor = (contract, signer) => (redeemer, methodName, methodArgs = [])
redeemer, 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 PADDED_SIGNATURE_SIZE = 2 * 96; // 96 bytes in hexadecimal string length
const DUMMY_SIGNATURE = `0x${web3.utils.padLeft('', REAL_SIGNATURE_SIZE)}`; const DUMMY_SIGNATURE = `0x${web3.utils.padLeft('', REAL_SIGNATURE_SIZE)}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment