File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
EthereumAPICalls/Ethereum Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,7 @@ import Core
11
11
12
12
extension web3 . Eth {
13
13
14
- public func send( _ transaction: CodableTransaction , password: String ) async throws -> TransactionSendingResult {
15
- if let attachedKeystoreManager = self . web3. provider. attachedKeystoreManager {
16
- var tmpTransaction = transaction
17
- do {
18
- try Web3Signer . signTX ( transaction: & tmpTransaction,
19
- keystore: attachedKeystoreManager,
20
- account: tmpTransaction. from ?? tmpTransaction. sender ?? EthereumAddress . contractDeploymentAddress ( ) ,
21
- password: password)
22
- } catch {
23
- throw Web3Error . inputError ( desc: " Failed to locally sign a transaction " )
24
- }
25
- return try await self . web3. eth. send ( raw: tmpTransaction. encode ( for: . transaction) !)
26
- }
27
-
14
+ public func send( _ transaction: CodableTransaction ) async throws -> TransactionSendingResult {
28
15
// MARK: Sending Data flow
29
16
let request : APIRequest = . sendTransaction( transaction)
30
17
let response : APIResponse < Hash > = try await APIRequest . sendRequest ( with: self . provider, for: request)
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class WriteOperation: ReadOperation {
26
26
return try await web3. eth. send ( raw: transactionData)
27
27
}
28
28
// MARK: Sending Data flow
29
- return try await web3. eth. send ( transaction, password : password )
29
+ return try await web3. eth. send ( transaction)
30
30
}
31
31
32
32
// FIXME: Rewrite this to CodableTransaction
You can’t perform that action at this time.
0 commit comments