We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0778b commit 29fff74Copy full SHA for 29fff74
Tests/web3swiftTests/localTests/Mocks.swift
@@ -9,8 +9,14 @@ import Foundation
9
@testable import Core
10
11
class Web3EthMock: IEth {
12
+ let provider: Web3Provider
13
+
14
var onCallTransaction: ((CodableTransaction) -> Data)?
15
16
+ init(provider: Web3Provider) {
17
+ self.provider = provider
18
+ }
19
20
func callTransaction(_ transaction: CodableTransaction) async throws -> Data {
21
onCallTransaction?(transaction) ?? Data()
22
}
0 commit comments