Skip to content

Commit 70ba3b8

Browse files
committed
Remove obsolete function for write operation
1 parent 210337c commit 70ba3b8

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Sources/web3swift/Operations/WriteOperation.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,4 @@ public class WriteOperation: ReadOperation {
3030
// MARK: Sending Data flow
3131
return try await web3.eth.send(transaction)
3232
}
33-
34-
// FIXME: Rewrite this to CodableTransaction
35-
func nonce(for policy: CodableTransaction.NoncePolicy, from: EthereumAddress) async throws -> BigUInt {
36-
switch policy {
37-
case .latest:
38-
return try await self.web3.eth.getTransactionCount(for: from, onBlock: .latest)
39-
case .pending:
40-
return try await self.web3.eth.getTransactionCount(for: from, onBlock: .pending)
41-
case .earliest:
42-
return try await self.web3.eth.getTransactionCount(for: from, onBlock: .earliest)
43-
case .exact(let nonce):
44-
return nonce
45-
}
46-
}
4733
}

0 commit comments

Comments
 (0)