You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a placeholder for the new_pending_transaction_filter method, which is designed to establish a filter that notifies when new pending transactions enter the transaction pool.
/// Creates a filter to notify when new pending transactions arise.fnnew_pending_transaction_filter(&self) -> jsonrpc_core::BoxFuture<jsonrpc_core::Result<U256>>{not_implemented("new_pending_transaction_filter")}
Expected response
Command:
# Note: Using mainnet URL for demonstration purposes
curl -X POST https://mainnet.era.zksync.io \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_newPendingTransactionFilter",
"params": []
}'
It should establish a new filter and return a U256 id for the created filter that's oriented towards pending transactions.
Unit Tests:
Write unit tests to confirm the new_pending_transaction_filter method's functionality.
Consider and test for potential edge cases.
Ensure that potential errors and exceptions are managed appropriately.
Inline Documentation:
Add inline Rust documentation (/// comments) to define the purpose and implementation of the new_pending_transaction_filter method.
Include any relevant information about the return values and potential errors/exceptions.
Task Checklist:
Implement the new_pending_transaction_filter method.
Write unit tests for the new_pending_transaction_filter method.
Include inline documentation for the new_pending_transaction_filter method.
Additional Notes:
If you're an external contributor looking to take on this issue, please comment below to let us know you're working on it. If you need further clarification on the requirements or need assistance with anything related to the implementation, feel free to ask!
The text was updated successfully, but these errors were encountered:
Description:
We currently have a placeholder for the
new_pending_transaction_filter
method, which is designed to establish a filter that notifies when new pending transactions enter the transaction pool.Expected response
Command:
Response:
Requirements:
Implement the Method:
U256
id for the created filter that's oriented towards pending transactions.Unit Tests:
new_pending_transaction_filter
method's functionality.Inline Documentation:
///
comments) to define the purpose and implementation of thenew_pending_transaction_filter
method.Task Checklist:
new_pending_transaction_filter
method.new_pending_transaction_filter
method.new_pending_transaction_filter
method.Additional Notes:
If you're an external contributor looking to take on this issue, please comment below to let us know you're working on it. If you need further clarification on the requirements or need assistance with anything related to the implementation, feel free to ask!
The text was updated successfully, but these errors were encountered: