From 79f8ffc3dfeb0db765e4ce90533f20036e8dc89d Mon Sep 17 00:00:00 2001 From: 0x10240 <160765054+0x10240@users.noreply.github.com> Date: Fri, 10 May 2024 04:10:50 +0800 Subject: [PATCH] Standardize spacing in code comments for better readability. (#1020) Co-authored-by: Dustin Brickwood --- docs/build/tooling/block-explorer/contract-verification.md | 2 +- docs/build/tooling/hardhat/getting-started.md | 2 +- .../account-abstraction/daily-spend-limit.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/build/tooling/block-explorer/contract-verification.md b/docs/build/tooling/block-explorer/contract-verification.md index 936e368b04..5fa5d8137a 100644 --- a/docs/build/tooling/block-explorer/contract-verification.md +++ b/docs/build/tooling/block-explorer/contract-verification.md @@ -63,6 +63,6 @@ You can output the constructor argument data at deploy time by adding the follow const your_constructor_argument = "Hi there!"; const myContract = await deployer.deploy(artifact, [your_constructor_argument]); -//obtain the Constructor Arguments +// obtain the Constructor Arguments console.log("constructor args:" + myContract.interface.encodeDeploy([your_constructor_argument])); ``` diff --git a/docs/build/tooling/hardhat/getting-started.md b/docs/build/tooling/hardhat/getting-started.md index f357e37038..511a2b3b0f 100644 --- a/docs/build/tooling/hardhat/getting-started.md +++ b/docs/build/tooling/hardhat/getting-started.md @@ -235,7 +235,7 @@ export default async function (hre: HardhatRuntimeEnvironment) { const greeterContract = await deployer.deploy(artifact, [greeting]); - //obtain the Constructor Arguments + // obtain the Constructor Arguments console.log("constructor args:" + greeterContract.interface.encodeDeploy([greeting])); // Show the contract info. diff --git a/docs/build/tutorials/smart-contract-development/account-abstraction/daily-spend-limit.md b/docs/build/tutorials/smart-contract-development/account-abstraction/daily-spend-limit.md index 04950b0867..581de06678 100644 --- a/docs/build/tutorials/smart-contract-development/account-abstraction/daily-spend-limit.md +++ b/docs/build/tutorials/smart-contract-development/account-abstraction/daily-spend-limit.md @@ -211,7 +211,7 @@ The code below sets and removes the limit. _updateLimit(_token, 0, 0, 0, false); } - // verify if the update to a Limit struct is valid + // verify if the update to a Limit struct is valid // Ensure that users can't freely modify(increase or remove) the daily limit to spend more. function isValidUpdate(address _token) internal view returns (bool) { // Reverts unless it is first spending after enabling