Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Jun 13, 2024
1 parent f79a5cf commit ba0b208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/chain-connector/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl HttpChainConnector {
.request("eth_getBlockByNumber", rpc_params!["pending", false])
.await,
)?;

let fee = block
.as_object()
.and_then(|o| o.get("baseFeePerGas"))
Expand Down Expand Up @@ -313,7 +313,7 @@ impl HttpChainConnector {
.for_each(|unit| {
deals
.entry(unit.deal.to_string().into())
.or_insert_with(Vec::new)
.or_default()
.push(unit.id.to_vec());
});

Expand Down Expand Up @@ -504,7 +504,7 @@ impl HttpChainConnector {
}
.abi_encode();
tracing::debug!(target: "chain-connector", "Registering worker {worker_id} for deal {deal_id} with cu_id {cu_id}");
self.send_tx(data, &deal_id.as_str()).await
self.send_tx(data, deal_id.as_str()).await
}

fn difficulty_params(&self) -> ArrayParams {
Expand Down
2 changes: 1 addition & 1 deletion crates/chain-connector/src/function/deal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl CIDV1 {

impl Status {
pub fn from_hex(hex: &str) -> Result<Self, ConnectorError> {
let bytes = decode_hex(&hex)?;
let bytes = decode_hex(hex)?;
if bytes.is_empty() {
return Err(ConnectorError::EmptyData(hex.to_string()));
}
Expand Down

0 comments on commit ba0b208

Please sign in to comment.