Skip to content

Commit 6334ba2

Browse files
authored
Ether -> ether
1 parent 456b184 commit 6334ba2

File tree

1 file changed

+3
-3
lines changed
  • public/content/developers/docs/standards/tokens/erc-223

1 file changed

+3
-3
lines changed

public/content/developers/docs/standards/tokens/erc-223/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ contract RecipientContract is IERC223Recipient {
129129
{
130130
// It is important to understand that within this function
131131
// msg.sender is the address of a token that is being received,
132-
// msg.value is always 0 as the token contract does not own or send Ether in most cases,
132+
// msg.value is always 0 as the token contract does not own or send ether in most cases,
133133
// _from is the sender of the token transfer,
134134
// _value is the amount of tokens that was deposited.
135135
require(msg.sender == tokenA);
@@ -155,7 +155,7 @@ If an ERC-20 token is sent to the `RecipientContract`, the tokens will be transf
155155

156156
### What if we want to execute some function after the token deposit is completed? {#function-execution}
157157

158-
There are multiple ways of doing so. In this example we will follow the method which makes ERC-223 transfers identical to Ether transfers:
158+
There are multiple ways of doing so. In this example we will follow the method which makes ERC-223 transfers identical to ether transfers:
159159

160160
```solidity
161161
contract RecipientContract is IERC223Recipient {
@@ -178,7 +178,7 @@ contract RecipientContract is IERC223Recipient {
178178
}
179179
```
180180

181-
When the `RecipientContract` will receive a ERC-223 token the contract will execute a function encoded as `_data` parameter of the token transaction, identical to how Ether transactions encode function calls as transaction `data`. Read [the data field](https://ethereum.org/en/developers/docs/transactions/#the-data-field) for more information.
181+
When the `RecipientContract` will receive a ERC-223 token the contract will execute a function encoded as `_data` parameter of the token transaction, identical to how ether transactions encode function calls as transaction `data`. Read [the data field](https://ethereum.org/en/developers/docs/transactions/#the-data-field) for more information.
182182

183183
In the above example an ERC-223 token must be transferred to the address of the `RecipientContract` with the `transfer(address,uin256,bytes calldata _data)` function. If the data parameter will be `0xc2985578` (the signature of a `foo()` function) then the function foo() will be invoked after the token deposit is received and the event Foo() will be fired.
184184

0 commit comments

Comments
 (0)