Skip to content

Commit 8894757

Browse files
Update ABIEncoding.swift
Fix DocC comment layout.
1 parent 0209658 commit 8894757

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/Core/EthereumABI/ABIEncoding.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ public struct ABIEncoder {
191191
return headsConcatenated + tailsConcatenated
192192
}
193193

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
197199
/// ABIEncoder.encode(types: [type], values: [value] as [AnyObject])
198200
/// ```
199201
/// Almost identical to use of `web3.eth.abi.encodeParameter` in web3.js.

0 commit comments

Comments
 (0)