Skip to content

Commit bfde973

Browse files
chore: remove redundant Bytes inner conversion in otterscan backend (#12259)
1 parent cab3113 commit bfde973

File tree

1 file changed

+1
-1
lines changed
  • crates/anvil/src/eth/otterscan

1 file changed

+1
-1
lines changed

crates/anvil/src/eth/otterscan/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl EthApi {
8787
if let Some(receipt) = self.backend.mined_transaction_receipt(hash)
8888
&& !receipt.inner.inner.as_receipt_with_bloom().receipt.status.coerce_status()
8989
{
90-
return Ok(receipt.out.map(|b| b.0.into()).unwrap_or(Bytes::default()));
90+
return Ok(receipt.out.unwrap_or_default());
9191
}
9292

9393
Ok(Bytes::default())

0 commit comments

Comments
 (0)