We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e768dc commit df1cb62Copy full SHA for df1cb62
chain/ethereum/src/ethereum_adapter.rs
@@ -734,18 +734,19 @@ impl EthereumAdapter {
734
call.gas,
735
)
736
.await?;
737
- let _ = cache
+ if let Err(e) = cache
738
.set_call(
739
&logger,
740
req.cheap_clone(),
741
call.block_ptr.cheap_clone(),
742
result.clone(),
743
744
- .map_err(|e| {
745
- error!(logger, "EthereumAdapter: call cache set error";
+ .await
+ {
746
+ error!(logger, "EthereumAdapter: call cache set error";
747
"contract_address" => format!("{:?}", req.address),
- "error" => e.to_string())
748
- });
+ "error" => e.to_string());
749
+ }
750
751
Ok(req.response(result, call::Source::Rpc))
752
}
0 commit comments