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