Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens committed May 15, 2024
1 parent 9505b2c commit b5e6eb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions examples/ethereum-rpc/src/ethereum_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pub enum EthereumRPC {
GetTransactionCount(&'static str, BlockParameter),
SendRawTransaction(&'static str),
Syncing,
// filter id
UninstallFilter(&'static str),
}

impl JsonRpcTarget for EthereumRPC {
Expand All @@ -88,6 +90,7 @@ impl JsonRpcTarget for EthereumRPC {
EthereumRPC::FeeHistory(_, _, _) => "eth_feeHistory",
EthereumRPC::GetCode(_, _) => "eth_getCode",
EthereumRPC::BlobBaseFee => "eth_blobBaseFee",
EthereumRPC::UninstallFilter(_) => "eth_uninstallFilter",
}
}

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ethereum-rpc/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mod ethereum_rpc_test {
async fn test_blob_base_fee() {
let provider = Provider::<EthereumRPC>::default();
let result: JsonRpcResult<String> = provider
.request_json(EthereumRPC::BlobBaseFee)
.request_json(EthereumRPC::UninstallFilter("0xda"))
.await
.expect("request error");

Expand Down

0 comments on commit b5e6eb1

Please sign in to comment.