Skip to content

Commit 713c63d

Browse files
pharms-ethJeneaVranceanu
authored andcommitted
working on tests
1 parent 6b69769 commit 713c63d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/web3swift/Operations/WriteOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class WriteOperation: ReadOperation {
2020
/// - sendRaw: If set to `true` transaction will be signed and sent using `eth_sendRawTransaction`.
2121
/// Otherwise, no signing attempts will take place and the `eth_sendTransaction` RPC will be used instead.
2222
/// Default value is `false`.
23-
public func writeToChain(password: String, policies: Policies = .auto, sendRaw: Bool = true) async throws -> TransactionSendingResult {
23+
public func writeToChain(password: String, policies: Policies = .auto, sendRaw: Bool = false) async throws -> TransactionSendingResult {
2424
try await policyResolver.resolveAll(for: &transaction, with: policies)
2525

2626
guard sendRaw else {

Tests/web3swiftTests/localTests/AdvancedABIv2Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class AdvancedABIv2Tests: LocalTestCase {
132132
let deployTx = contract.prepareDeploy(bytecode: bytecode, parameters: parameters)!
133133
deployTx.transaction.from = allAddresses[0]
134134
let policies = Policies(gasLimitPolicy: .manual(3000000))
135-
let result = try await deployTx.writeToChain(password: "web3swift", policies: policies, sendRaw: false)
135+
let result = try await deployTx.writeToChain(password: "web3swift", policies: policies)
136136
let txHash = result.hash.stripHexPrefix()
137137

138138
Thread.sleep(forTimeInterval: 1.0)

0 commit comments

Comments
 (0)