Skip to content

Commit 653f9f6

Browse files
author
FT
authored
Update ERC-6860: typos
Merged by EIP-Bot.
1 parent 5635555 commit 653f9f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ERCS/erc-6860.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The manual mode will use the raw **mPathQuery** as calldata of the message direc
120120

121121
The returned message data will be treated as ABI-encoded bytes and the decoded bytes will be returned to the frontend.
122122

123-
The MIME type returned to the frontend is ``text/html`` by default, but will be overriden if a **fileExtension** is present. In this case, the MIME type will be deduced from the filename extension.
123+
The MIME type returned to the frontend is ``text/html`` by default, but will be overridden if a **fileExtension** is present. In this case, the MIME type will be deduced from the filename extension.
124124

125125
```
126126
relMPathQuery = relMPath [ "?" mQuery ]
@@ -202,7 +202,7 @@ bytesSizes = %x31-39 ; 1-9
202202

203203
The "returns" attribute in **aQuery** tells the format of the returned data. It follows the syntax of the arguments part of the ethereum ABI function signature (``uint`` and ``int`` aliases are authorized).
204204

205-
- If the "returns" attribute value is undefined or empty, the returned message data will be treated as ABI-encoded bytes and the decoded bytes will be returned to the frontend. The MIME type returned to the frontend will be undefined by default, but will be overriden if the last argument is of string type and has a **fileExtension**, in which case the MIME type will be deduced from the filename extension. (Note that **fileExtension** is not excluded from the string argument given to the smartcontract)
205+
- If the "returns" attribute value is undefined or empty, the returned message data will be treated as ABI-encoded bytes and the decoded bytes will be returned to the frontend. The MIME type returned to the frontend will be undefined by default, but will be overridden if the last argument is of string type and has a **fileExtension**, in which case the MIME type will be deduced from the filename extension. (Note that **fileExtension** is not excluded from the string argument given to the smartcontract)
206206
- If the "returns" attribute value is equal to "()", the raw bytes of the returned message data will be returned, encoded as a "0x"-prefixed hex string in an array in JSON format: ``["0xXXXXX"]``
207207
- Otherwise, the returned message data will be ABI-decoded in the data types specified in the **returns** value and encoded in JSON format. The encoding of the data will follow the Ethereum JSON-RPC format:
208208
- Unformatted data (bytes, address) will be encoded as hex, prefixed with "0x", two hex digits per byte
@@ -257,7 +257,7 @@ web3://vitalikblog.eth:5/
257257

258258
where the contract of **vitalikblog.eth:5** is in manual mode.
259259

260-
The protocol will find the address of **vitalikblog.eth** from ENS on chainid 5 (Goerli). Then after determing the contract is in manual mode, the protocol will call the address with "To" = **contractAddress** and "Calldata" = "0x2F" with chainid = 5. The returned data will be treated as ABI-type "(bytes)", and the decoded bytes will be returned to the frontend, with the information that the MIME type is ``text/html``.
260+
The protocol will find the address of **vitalikblog.eth** from ENS on chainid 5 (Goerli). Then after determining the contract is in manual mode, the protocol will call the address with "To" = **contractAddress** and "Calldata" = "0x2F" with chainid = 5. The returned data will be treated as ABI-type "(bytes)", and the decoded bytes will be returned to the frontend, with the information that the MIME type is ``text/html``.
261261

262262
#### Example 4
263263

@@ -267,7 +267,7 @@ web3://0xe4ba0e245436b737468c206ab5c8f4950597ab7f:42170/
267267

268268
where the contract "0xe4ba0e245436b737468c206ab5c8f4950597ab7f:42170" is in manual mode.
269269

270-
After determing the contract is in manual mode, the protocol will call the address with "To" = "0xe4ba0e245436b737468c206ab5c8f4950597ab7f" and "Calldata" = "0x2F" with chainid = 42170 (Arbitrum Nova). The returned data will be treated as ABI-type "(bytes)", and the decoded bytes will be returned to the frontend, with the information that the MIME type is ``text/html``.
270+
After determining the contract is in manual mode, the protocol will call the address with "To" = "0xe4ba0e245436b737468c206ab5c8f4950597ab7f" and "Calldata" = "0x2F" with chainid = 42170 (Arbitrum Nova). The returned data will be treated as ABI-type "(bytes)", and the decoded bytes will be returned to the frontend, with the information that the MIME type is ``text/html``.
271271

272272
#### Example 5
273273

0 commit comments

Comments
 (0)