@@ -44,9 +44,11 @@ jest.mock('../../util/transaction-controller', () => ({
4444 * @param params - The request parameters.
4545 * @returns The JSON-RPC request.
4646 */
47- function constructSendTransactionRequest (
48- params : Json [ ] ,
49- ) : JsonRpcRequest < [ Transaction & JsonRpcParams ] > & { method : 'eth_sendTransaction' } {
47+ function constructSendTransactionRequest ( params : Json [ ] ) : JsonRpcRequest <
48+ [ Transaction & JsonRpcParams ]
49+ > & {
50+ method : 'eth_sendTransaction' ;
51+ } {
5052 return {
5153 jsonrpc : '2.0' ,
5254 id : 1 ,
@@ -173,7 +175,9 @@ describe('eth_sendTransaction', () => {
173175 async ( ) =>
174176 await eth_sendTransaction ( {
175177 hostname : 'example.metamask.io' ,
176- req : constructSendTransactionRequest ( invalidParameter as unknown as Json [ ] ) ,
178+ req : constructSendTransactionRequest (
179+ invalidParameter as unknown as Json [ ] ,
180+ ) ,
177181 res : constructPendingJsonRpcResponse ( ) ,
178182 sendTransaction : getMockAddTransaction ( {
179183 returnValue : 'fake-hash' ,
@@ -195,7 +199,9 @@ describe('eth_sendTransaction', () => {
195199 async ( ) =>
196200 await eth_sendTransaction ( {
197201 hostname : 'example.metamask.io' ,
198- req : constructSendTransactionRequest ( invalidParameter as unknown as Json [ ] ) ,
202+ req : constructSendTransactionRequest (
203+ invalidParameter as unknown as Json [ ] ,
204+ ) ,
199205 res : constructPendingJsonRpcResponse ( ) ,
200206 sendTransaction : getMockAddTransaction ( {
201207 returnValue : 'fake-hash' ,
0 commit comments