Skip to content

Commit 2b5f65b

Browse files
Further fixes of Resolver by review issues.
1 parent 64af103 commit 2b5f65b

File tree

3 files changed

+1
-45
lines changed

3 files changed

+1
-45
lines changed

Sources/Core/Transaction/Policies.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,5 @@ public struct Policies {
5353
self.maxPriorityFeePerGasPolicy = maxPriorityFeePerGasPolicy
5454
}
5555

56-
public static var auto: Policies {
57-
Policies()
58-
}
56+
public private(set) static var auto = Policies()
5957
}

Sources/web3swift/Utils/Hooks/NonceMiddleware.swift

Lines changed: 0 additions & 41 deletions
This file was deleted.

Sources/web3swift/Web3/Web3+Resolver.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class PolicyResolver {
1717
}
1818

1919
public func resolveAll(for tx: inout CodableTransaction, with policies: Policies = .auto) async throws {
20-
// FIXME: This should throw an appropriate error, since this condition is critical to whole function tast
2120
if tx.from != nil || tx.sender != nil {
2221
// Nonce should be resolved first - as this might be needed for some
2322
// tx's gas estimation

0 commit comments

Comments
 (0)