Skip to content

Commit 7b6e0e8

Browse files
Delete unused method
1 parent 35f6436 commit 7b6e0e8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Sources/web3swift/HookedFunctions/Web3+BrowserFunctions.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@ extension web3.BrowserFunctions {
8585
// } catch { return nil }
8686
// }
8787

88-
// FIXME: Rewrite this to CodableTransaction
89-
public func sendTransaction(_ transaction: CodableTransaction, transactionOptions: CodableTransaction, password: String = "web3swift") async -> [String: Any]? {
90-
do {
91-
let result = try await self.web3.eth.send(transaction, transactionOptions: transactionOptions, password: password)
92-
return ["txhash": result.hash]
93-
} catch {
94-
return nil
95-
}
96-
}
97-
//
9888
// public func estimateGas(_ transactionJSON: [String: Any]) async -> BigUInt? {
9989
// do {
10090
// let jsonData: Data = try JSONSerialization.data(withJSONObject: transactionJSON, options: [])

0 commit comments

Comments
 (0)