Skip to content

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: withbest <[email protected].>
  • Loading branch information
withbest committed Dec 20, 2024
1 parent 37b55c6 commit 3e8db13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/mixins/PermitAndCall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract contract PermitAndCall {

/**
* @notice Executes a permit for an ERC20 token and then a specified action in a single transaction.
* @param permit ERC20 token address (20 bytes) concatinated with the permit data, allowing this contract to spend the token.
* @param permit ERC20 token address (20 bytes) concatenated with the permit data, allowing this contract to spend the token.
* Format: [token address (20 bytes)][permit data]
* @param action The data representing the action to be executed after the permit.
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/contracts/mixins/PermitAndCall.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Executes a permit for an ERC20 token and then a specified action in a single tra

| Name | Type | Description |
| ---- | ---- | ----------- |
| permit | bytes | ERC20 token address (20 bytes) concatinated with the permit data, allowing this contract to spend the token. Format: [token address (20 bytes)][permit data] |
| permit | bytes | ERC20 token address (20 bytes) concatenated with the permit data, allowing this contract to spend the token. Format: [token address (20 bytes)][permit data] |
| action | bytes | The data representing the action to be executed after the permit. |

2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export async function saveContractWithCreate3Deployment(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const receipt = await provider.getTransactionReceipt(deployTxHash) as {[key: string]: any};
if (receipt != null) {
// conver ethers.TransactionReceipt object to hardhat-deploy.Receipt object
// convert ethers.TransactionReceipt object to hardhat-deploy.Receipt object
receipt.transactionHash = receipt.transactionHash || receipt.hash;
receipt.transactionIndex = receipt.transactionIndex || receipt.index;
['provider', 'blobGasPrice', 'type', 'root', 'hash', 'index'].forEach(key => delete receipt[key]);
Expand Down

0 comments on commit 3e8db13

Please sign in to comment.