File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Sources/web3swift/Operations Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ public class ReadOperation {
15
15
public var contract : EthereumContract
16
16
public var method : String
17
17
public var data : Data ? { transaction. data }
18
- public var policies : Policies { web3. provider. policies }
19
18
20
19
var resolver : PolicyResolver
21
20
var web3 : Web3
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ public class WriteOperation: ReadOperation {
14
14
/// Sends (raw) transaction for write operation.
15
15
/// - Parameters:
16
16
/// - password: Password for private key.
17
- /// - policies: Custom policies for how to resolve (optional). Default are policies on Web3Provider instance .
18
- public func writeToChain( password: String , policies: Policies = super . policies ) async throws -> TransactionSendingResult {
17
+ /// - policies: Custom policies for how to resolve (optional). Default is auto .
18
+ public func writeToChain( password: String , policies: Policies = . auto ) async throws -> TransactionSendingResult {
19
19
try await resolver. resolveAll ( for: & transaction, with: policies)
20
20
if let attachedKeystoreManager = self . web3. provider. attachedKeystoreManager {
21
21
do {
You can’t perform that action at this time.
0 commit comments