Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 040d3a3

Browse files
authored
fix some typos (#6863)
Signed-off-by: teslaedison <[email protected]>
1 parent ca31f6a commit 040d3a3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/docs/guides/hardhat_tutorial/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default config;
7272

7373
```
7474

75-
By default, `hardhat-toolbox` is added to the file. You will need to explicity invoke the plugin. This will modify the Hardhat Run-time Environment - HRE and to include both the Web3 class and an instantiated web3 object. With the latter, you get a modified ready-to-use web3 object can comes with an initialized local/Hardhat provider. The object will be available to use anywhere in the project such as testing and deployment files.
75+
By default, `hardhat-toolbox` is added to the file. You will need to explicitly invoke the plugin. This will modify the Hardhat Run-time Environment - HRE and to include both the Web3 class and an instantiated web3 object. With the latter, you get a modified ready-to-use web3 object can comes with an initialized local/Hardhat provider. The object will be available to use anywhere in the project such as testing and deployment files.
7676

7777
### Write the Smart Contract
7878
When you start a new project, Hardhat provides a sample `Lock` contracts. Please refer to the contract in `myproject/contracts/Lock.sol` file.

fixtures/contracts/GreeterWithOverloading.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ contract GreeterWithOverloading {
2525
return (true, greeting);
2626
}
2727

28-
// function overlading with addtional parameter
28+
// function overlading with additional parameter
2929
function setGreeting(string memory _greeting, bool _raiseEvents) public returns (bool, string memory) {
3030
if(_raiseEvents) {
3131
emit GREETING_CHANGING(greeting, _greeting);

packages/web3-eth/test/integration/web3_eth/sign_transaction.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describeIf(getSystemTestBackend() !== BACKEND.HARDHAT)('Web3Eth.signTransaction'
6666

6767
expect(response).toMatchObject(expectedResponse);
6868

69-
// Pulling out of toMatchObject to be compatiable with Cypress
69+
// Pulling out of toMatchObject to be compatible with Cypress
7070
expect(response.raw).toMatch(/0[xX][0-9a-fA-F]+/);
7171
expect(typeof (response.tx as TransactionLegacySignedAPI).v).toBe('bigint');
7272
expect(response.tx.r).toMatch(/0[xX][0-9a-fA-F]{64}/);
@@ -98,7 +98,7 @@ describeIf(getSystemTestBackend() !== BACKEND.HARDHAT)('Web3Eth.signTransaction'
9898

9999
// eslint-disable-next-line jest/no-standalone-expect
100100
expect(response).toMatchObject(expectedResponse);
101-
// Pulling out of toMatchObject to be compatiable with Cypress
101+
// Pulling out of toMatchObject to be compatible with Cypress
102102
expect(response.raw).toMatch(/0[xX][0-9a-fA-F]+/);
103103
expect(typeof (response.tx as TransactionLegacySignedAPI).v).toBe('bigint');
104104
expect(response.tx.r).toMatch(/0[xX][0-9a-fA-F]{64}/);

packages/web3-utils/src/converters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const numberToHex = (value: Numbers, hexstrict?: boolean): HexString => {
187187
let updatedValue = validatorUtils.numberToHex(value);
188188
if (hexstrict) {
189189
if (!updatedValue.startsWith('-') && updatedValue.length % 2 === 1) {
190-
// To avoid duplicate a circular dependancy we will not be using the padLeft method
190+
// To avoid duplicate a circular dependency we will not be using the padLeft method
191191
updatedValue = '0x0'.concat(updatedValue.slice(2));
192192
} else if (updatedValue.length % 2 === 0 && updatedValue.startsWith('-'))
193193
updatedValue = '-0x0'.concat(updatedValue.slice(3));

packages/web3/test/integration/web3.config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('Web3 instance', () => {
6565
}
6666
});
6767

68-
it('should be send transaction, change for defaultTransactionType and sucesfully send transaction with different type', async () => {
68+
it('should be send transaction, change for defaultTransactionType and successfully send transaction with different type', async () => {
6969
const transaction = {
7070
from: accounts[0],
7171
to: accounts[0],

0 commit comments

Comments
 (0)