@@ -25,7 +25,7 @@ public enum APIRequest {
25
25
// ??
26
26
case estimateGas( TransactionParameters , BlockNumber )
27
27
case sendRawTransaction( Hash )
28
- case sendTransaction( TransactionParameters , BlockNumber )
28
+ case sendTransaction( TransactionParameters )
29
29
case getTransactionByHash( Hash )
30
30
case getTransactionReceipt( Hash )
31
31
case getLogs( EventFilterParameters )
@@ -148,8 +148,8 @@ extension APIRequest {
148
148
case let . sendRawTransaction( hash) :
149
149
return [ RequestParameter . string ( hash) ]
150
150
151
- case . sendTransaction( let transactionParameters, let blockNumber ) :
152
- return [ RequestParameter . transaction ( transactionParameters) , RequestParameter . string ( blockNumber . stringValue ) ]
151
+ case let . sendTransaction( transactionParameters) :
152
+ return [ RequestParameter . transaction ( transactionParameters) ]
153
153
154
154
case . getTransactionByHash( let hash) :
155
155
return [ RequestParameter . string ( hash) ]
@@ -240,6 +240,7 @@ extension APIRequest {
240
240
guard let httpResponse = response as? HTTPURLResponse ,
241
241
200 ..< 400 ~= httpResponse. statusCode else { throw Web3Error . connectionError }
242
242
243
+ // FIXME: Add throwing an error from is server fails.
243
244
/// This bit of code is purposed to work with literal types that comes in Response in hexString type.
244
245
/// Currently it's just any kind of Integers like `(U)Int`, `Big(U)Int`.
245
246
if Result . self == UInt . self || Result . self == Int . self || Result . self == BigInt . self || Result . self == BigUInt . self {
0 commit comments