From b5e6eb1479e3a46be1cfa4bc029060c04cc9c1c1 Mon Sep 17 00:00:00 2001 From: hewigovens <360470+hewigovens@users.noreply.github.com> Date: Wed, 15 May 2024 11:52:48 +0900 Subject: [PATCH] CI fix --- examples/ethereum-rpc/src/ethereum_rpc.rs | 6 ++++++ examples/ethereum-rpc/tests/integration_test.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/ethereum-rpc/src/ethereum_rpc.rs b/examples/ethereum-rpc/src/ethereum_rpc.rs index 08a63b9..8c0949e 100644 --- a/examples/ethereum-rpc/src/ethereum_rpc.rs +++ b/examples/ethereum-rpc/src/ethereum_rpc.rs @@ -70,6 +70,8 @@ pub enum EthereumRPC { GetTransactionCount(&'static str, BlockParameter), SendRawTransaction(&'static str), Syncing, + // filter id + UninstallFilter(&'static str), } impl JsonRpcTarget for EthereumRPC { @@ -88,6 +90,7 @@ impl JsonRpcTarget for EthereumRPC { EthereumRPC::FeeHistory(_, _, _) => "eth_feeHistory", EthereumRPC::GetCode(_, _) => "eth_getCode", EthereumRPC::BlobBaseFee => "eth_blobBaseFee", + EthereumRPC::UninstallFilter(_) => "eth_uninstallFilter", } } @@ -126,6 +129,9 @@ impl JsonRpcTarget for EthereumRPC { EthereumRPC::GetCode(address, block) => { vec![Value::String(address.to_string()), block.into()] } + EthereumRPC::UninstallFilter(filter_id) => { + vec![Value::String(filter_id.to_string())] + } EthereumRPC::ChainId | EthereumRPC::GasPrice | EthereumRPC::BlockNumber diff --git a/examples/ethereum-rpc/tests/integration_test.rs b/examples/ethereum-rpc/tests/integration_test.rs index 0303824..45e9cd0 100644 --- a/examples/ethereum-rpc/tests/integration_test.rs +++ b/examples/ethereum-rpc/tests/integration_test.rs @@ -69,7 +69,7 @@ mod ethereum_rpc_test { async fn test_blob_base_fee() { let provider = Provider::::default(); let result: JsonRpcResult = provider - .request_json(EthereumRPC::BlobBaseFee) + .request_json(EthereumRPC::UninstallFilter("0xda")) .await .expect("request error");