@@ -27,55 +27,55 @@ extension APIRequest {
27
27
return [ RequestParameter] ( )
28
28
29
29
case . estimateGas( let transactionParameters, let blockNumber) :
30
- return [ RequestParameter . transaction ( transactionParameters) , RequestParameter . string ( blockNumber. stringValue) ]
30
+ return [ . transaction( transactionParameters) , . string( blockNumber. stringValue) ]
31
31
32
32
case let . sendRawTransaction( hash) :
33
- return [ RequestParameter . string ( hash) ]
33
+ return [ . string( hash) ]
34
34
35
35
case let . sendTransaction( transactionParameters) :
36
- return [ RequestParameter . transaction ( transactionParameters) ]
36
+ return [ . transaction( transactionParameters) ]
37
37
38
38
case . getTransactionByHash( let hash) :
39
- return [ RequestParameter . string ( hash) ]
39
+ return [ . string( hash) ]
40
40
41
41
case . getTransactionReceipt( let receipt) :
42
- return [ RequestParameter . string ( receipt) ]
42
+ return [ . string( receipt) ]
43
43
44
44
case . getLogs( let eventFilterParameters) :
45
- return [ RequestParameter . eventFilter ( eventFilterParameters) ]
45
+ return [ . eventFilter( eventFilterParameters) ]
46
46
47
47
case . personalSign( let address, let string) :
48
- return [ RequestParameter . string ( address) , RequestParameter . string ( string) ]
48
+ return [ . string( address) , . string( string) ]
49
49
50
50
case . call( let transactionParameters, let blockNumber) :
51
- return [ RequestParameter . transaction ( transactionParameters) , RequestParameter . string ( blockNumber. stringValue) ]
51
+ return [ . transaction( transactionParameters) , . string( blockNumber. stringValue) ]
52
52
53
53
case . getTransactionCount( let address, let blockNumber) :
54
- return [ RequestParameter . string ( address) , RequestParameter . string ( blockNumber. stringValue) ]
54
+ return [ . string( address) , . string( blockNumber. stringValue) ]
55
55
56
56
case . getBalance( let address, let blockNumber) :
57
- return [ RequestParameter . string ( address) , RequestParameter . string ( blockNumber. stringValue) ]
57
+ return [ . string( address) , . string( blockNumber. stringValue) ]
58
58
59
59
case . getStorageAt( let address, let bigUInt, let blockNumber) :
60
- return [ RequestParameter . string ( address) , RequestParameter . string ( bigUInt. hexString) , RequestParameter . string ( blockNumber. stringValue) ]
60
+ return [ . string( address) , . string( bigUInt. hexString) , . string( blockNumber. stringValue) ]
61
61
62
62
case . getCode( let address, let blockNumber) :
63
- return [ RequestParameter . string ( address) , RequestParameter . string ( blockNumber. stringValue) ]
63
+ return [ . string( address) , . string( blockNumber. stringValue) ]
64
64
65
65
case . getBlockByHash( let hash, let bool) :
66
- return [ RequestParameter . string ( hash) , RequestParameter . bool ( bool) ]
66
+ return [ . string( hash) , . bool( bool) ]
67
67
68
68
case . getBlockByNumber( let block, let bool) :
69
- return [ RequestParameter . string ( block. stringValue) , RequestParameter . bool ( bool) ]
69
+ return [ . string( block. stringValue) , . bool( bool) ]
70
70
71
71
case . feeHistory( let uInt, let blockNumber, let array) :
72
- return [ RequestParameter . string ( uInt. hexString) , RequestParameter . string ( blockNumber. stringValue) , RequestParameter . doubleArray ( array) ]
72
+ return [ . string( uInt. hexString) , . string( blockNumber. stringValue) , . doubleArray( array) ]
73
73
74
74
case . createAccount( let string) :
75
- return [ RequestParameter . string ( string) ]
75
+ return [ . string( string) ]
76
76
77
77
case . unlockAccount( let address, let string, let uInt) :
78
- return [ RequestParameter . string ( address) , RequestParameter . string ( string) , RequestParameter . uint ( uInt ?? 0 ) ]
78
+ return [ . string( address) , . string( string) , . uint( uInt ?? 0 ) ]
79
79
}
80
80
}
81
81
0 commit comments