Skip to content

Commit 80390cb

Browse files
chore: it's not ABI type but Solidity type
1 parent a6c0076 commit 80390cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Core/EthereumABI/ABIEncoding.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public struct ABIEncoder {
132132
/// Overloading to support `ABI.Element.InOut` as the type of the `types` array.
133133
/// Identical to use of `web3.eth.abi.encodeParameters` in web3.js.
134134
/// - Parameters:
135-
/// - types: an array of values' ABI types. Must be declared in the same order as entries in `values` or encoding will fail;
135+
/// - types: an array of values' Solidity types. Must be declared in the same order as entries in `values` or encoding will fail;
136136
/// - values: an array of values to encode. Must be declared in the same order as entries in `types` or encoding will fail;
137137
/// - Returns: ABI encoded data, e.g. function call parameters. Returns `nil` if:
138138
/// - `types.count != values.count`;
@@ -148,7 +148,7 @@ public struct ABIEncoder {
148148
/// Performs ABI encoding conforming to [the documentation of encoding](https://docs.soliditylang.org/en/develop/abi-spec.html#basic-design) in Solidity.
149149
/// Identical to use of `web3.eth.abi.encodeParameters` in web3.js.
150150
/// - Parameters:
151-
/// - types: an array of values' ABI types. Must be declared in the same order as entries in `values` or encoding will fail;
151+
/// - types: an array of values' Solidity types. Must be declared in the same order as entries in `values` or encoding will fail;
152152
/// - values: an array of values to encode. Must be declared in the same order as entries in `types` or encoding will fail;
153153
/// - Returns: ABI encoded data, e.g. function call parameters. Returns `nil` if:
154154
/// - `types.count != values.count`;
@@ -209,7 +209,7 @@ public struct ABIEncoder {
209209
/// 7465737400000000000000000000000000000000000000000000000000000000
210210
/// ```
211211
/// - Parameters:
212-
/// - type: ABI type of the `value`;
212+
/// - type: Solidity type of the `value`;
213213
/// - value: value to encode.
214214
/// - Returns: ABI encoded data, e.g. function call parameters. Returns `nil` if:
215215
/// - `types.count != values.count`;

0 commit comments

Comments
 (0)