You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Core/EthereumABI/ABIEncoding.swift
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -191,9 +191,11 @@ public struct ABIEncoder {
191
191
return headsConcatenated + tailsConcatenated
192
192
}
193
193
194
-
/// Performs ABI encoding conforming to [the documentation of encoding](https://docs.soliditylang.org/en/develop/abi-spec.html#basic-design) in Solidity
195
-
/// but **it does not add the data offset for dynamic types!!** To return single value **with data offset** use the following instead:
196
-
/// ```
194
+
/// Performs ABI encoding conforming to [the documentation of encoding](https://docs.soliditylang.org/en/develop/abi-spec.html#basic-design) in Solidity.
195
+
///
196
+
/// **It does not add the data offset for dynamic types!!** To return single value **with data offset** use the following instead:
197
+
///
198
+
/// ```swift
197
199
/// ABIEncoder.encode(types: [type], values: [value] as [AnyObject])
198
200
/// ```
199
201
/// Almost identical to use of `web3.eth.abi.encodeParameter` in web3.js.
0 commit comments