File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @ethereum-waffle/provider " : patch
3
+ ---
4
+
5
+ Include eth_sendTransaction when recording call history
Original file line number Diff line number Diff line change @@ -77,12 +77,13 @@ export class CallHistory {
77
77
/**
78
78
* A method can be:
79
79
* - `eth_call` - a query to the node,
80
- * - `eth_sendRawTransaction` - a transaction,
80
+ * - `eth_sendRawTransaction` - a raw transaction,
81
+ * - `eth_sendTransaction` - a transaction,
81
82
* - `eth_estimateGas` - gas estimation, typically precedes `eth_sendRawTransaction`.
82
83
*/
83
- if ( method === 'eth_call' ) { // Record a query.
84
+ if ( method === 'eth_call' || method === 'eth_sendTransaction' ) { // Record a query or a transaction .
84
85
callHistory . recordedCalls . push ( toRecordedCall ( args [ 0 ] ?. params ?. [ 0 ] ) ) ;
85
- } else if ( method === 'eth_sendRawTransaction' ) { // Record a transaction.
86
+ } else if ( method === 'eth_sendRawTransaction' ) { // Record a raw transaction.
86
87
const parsedTx = parseTransaction ( args [ 0 ] ?. params ?. [ 0 ] ) ;
87
88
callHistory . recordedCalls . push ( toRecordedCall ( parsedTx ) ) ;
88
89
}
You can’t perform that action at this time.
0 commit comments