Skip to content

fix: typos line number in erc20-weth-interfaces.md #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ In this section, we'll explore the `IERC20` interface, a standard interface for
You can find a "Solidity ERC20 Token Course" for beginners in LearnEth to understand the ERC20 token standard in more detail.

## IERC20 Interface
On line 80, we define the `IERC20` interface. This interface defines a standard set of functions that ERC-20 tokens must implement. Let's examine the key functions within this interface:
On line 85, we define the `IERC20` interface. This interface defines a standard set of functions that ERC-20 tokens must implement. Let's examine the key functions within this interface:

### 1. totalSupply
On line 81, we define the `totalSupply` function. This function returns the total supply of the token.
On line 86, we define the `totalSupply` function. This function returns the total supply of the token.

### 2. balanceOf
On line 83, we define the `balanceOf` function. This function returns the balance of the specified address.
On line 88, we define the `balanceOf` function. This function returns the balance of the specified address.

### 3. transfer
On line 85, we define the `transfer` function. This function transfers tokens from the sender to the specified recipient.
On line 90, we define the `transfer` function. This function transfers tokens from the sender to the specified recipient.

### 4. allowance
On line 87, we define the `allowance` function. This function returns the amount of tokens that the spender is allowed to spend on behalf of the owner.
On line 92, we define the `allowance` function. This function returns the amount of tokens that the spender is allowed to spend on behalf of the owner.

### 5. approve
On line 89, we define the `approve` function. When called, this function approves a spender to spend the specified amount of tokens on behalf of the sender.
On line 94, we define the `approve` function. When called, this function approves a spender to spend the specified amount of tokens on behalf of the sender.

### 6. transferFrom
On line 91, we define the `transferFrom` function. This function transfers tokens from the specified sender to the recipient. The function can only be called by the spender if the spender is allowed to spend the specified amount of tokens on behalf of the sender.
On line 96, we define the `transferFrom` function. This function transfers tokens from the specified sender to the recipient. The function can only be called by the spender if the spender is allowed to spend the specified amount of tokens on behalf of the sender.

### 7. Events
On lines 102-103, we define the `Transfer` and `Approval` events. These events are emitted when the `transfer` and `approve` functions are called, respectively.
Expand Down