Skip to content

Commit d378b9c

Browse files
fix: typos and clarifications for Solidity ABI compat docs and tutorials (#471)
1 parent 353dfaf commit d378b9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/background/solidity-metamask-compat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ and constructors, and they're handled at language level as follows:
134134
- Similarly, for decoding, `T` must implement `SolDecode`,
135135
while `E` must implement `SolErrorDecode`, and the returned data is decoded as `T`
136136
(i.e. `Result::Ok`) or `E` (i.e. `Result::Err`) depending on whether
137-
the revert flag is set (i.e. `E` if the revert flag is NOT set, and `T` otherwise).
137+
the revert flag is set (i.e. `E` if the revert flag is set, and `T` otherwise).
138138

139139
[sol-revert]: https://docs.soliditylang.org/en/latest/control-structures.html#revert
140140

@@ -166,7 +166,7 @@ struct UnitError;
166166
#[derive(SolErrorDecode, SolErrorEncode)]
167167
struct ErrorWithParams(bool, u8, String);
168168

169-
// Represented as a Solidity custom error with parameters
169+
// Represented as a Solidity custom error with named parameters
170170
#[derive(SolErrorDecode, SolErrorEncode)]
171171
struct ErrorWithNamedParams {
172172
status: bool,

tutorials/ethereum-compatibility/setup-solidity-abi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ This command will generate:
6262
## Understanding the Output
6363

6464
After building, you'll find additional files in your `target/ink/` directory:
65-
- `*.json` - Solidity ABI file
66-
- Contract metadata compatible with Ethereum tooling
65+
- `*.abi` - Solidity ABI file compatible with Ethereum tooling for contract interaction.
66+
- `*.json` - Contract metadata compatible with Ethereum tooling for reproducible builds and contract verification.
6767

6868
## Next Steps
6969

0 commit comments

Comments
 (0)