Skip to content

Commit

Permalink
chore: default value of sendRaw for writeToChain is true
Browse files Browse the repository at this point in the history
  • Loading branch information
JeneaVranceanu committed Nov 26, 2022
1 parent 5e1dd2c commit 6247628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/web3swift/Operations/WriteOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WriteOperation: ReadOperation {
/// nonce are resolved. Default value is ``Policies/auto``.
/// - sendRaw: If set to `true` transaction will be signed and sent using `eth_sendRawTransaction`.
/// Otherwise, no signing attempts will take place and the `eth_sendTransaction` RPC will be used instead.
/// Default value is `false`.
/// Default value is `true`.
public func writeToChain(password: String, policies: Policies = .auto, sendRaw: Bool = true) async throws -> TransactionSendingResult {
try await policyResolver.resolveAll(for: &transaction, with: policies)

Expand Down

0 comments on commit 6247628

Please sign in to comment.