Skip to content

Commit

Permalink
fix: double cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 17, 2025
1 parent 977bc42 commit 4b98d46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deferred_minter/src/app/ethereum/evm_rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ impl EvmRpcClient {
.map_err(|(code, msg)| DeferredMinterError::CanisterCall(code, msg))?;

match cycles_result {
Ok(cycles) => Ok(cycles),
Ok(cycles) => {
// multiply by 2 to be on the safe side
Ok(cycles * 2)
}
Err(err) => Err(DeferredMinterError::EvmRpc(format!(
"Failed to estimate cycles: {:?}",
err
Expand Down

0 comments on commit 4b98d46

Please sign in to comment.