Skip to content

Commit 548d39b

Browse files
Docs refactor a bit.
1 parent cd10a86 commit 548d39b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Sources/Core/Transaction/TransactionOptions.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ public protocol TransactionOptionsInheritable {
1313

1414
/// Options for sending or calling a particular Ethereum transaction
1515
public struct TransactionOptions {
16-
// Sets the transaction envelope type.
17-
// default here is legacy, so it will work on all chains
18-
// but the provider should perhaps set better defaults based on what chain is connected
19-
// id for Ethereum, default to EIP-1559
16+
/// Sets the transaction envelope type.
17+
///
18+
/// Default here is legacy, so it will work on all chains
19+
/// but the provider should perhaps set better defaults based on what chain is connected
20+
/// id for Ethereum, default to EIP-1559
2021
public var type: TransactionType?
2122

2223
/// Sets the transaction destination. It can either be a contract address or a private key controlled wallet address.
2324
///
2425
/// Usually should never be nil, left undefined for a contract-creation transaction.
2526
public var to: EthereumAddress?
26-
/// Sets from what account a transaction should be sent. Used only internally as the sender of Ethereum transaction
27+
/// Sets from what account a transaction should be sent.
28+
///
29+
/// Used only internally as the sender of Ethereum transaction
2730
/// is determined purely from the transaction signature. Indicates to the Ethereum node or to the local keystore what private key
2831
/// should be used to sign a transaction.
2932
///

0 commit comments

Comments
 (0)