File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Sources/web3swift/Operations Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,4 @@ public class WriteOperation: ReadOperation {
30
30
// MARK: Sending Data flow
31
31
return try await web3. eth. send ( transaction)
32
32
}
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
- }
47
33
}
You can’t perform that action at this time.
0 commit comments