Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd committed Jan 18, 2024
1 parent 395104e commit 7f535fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine-precompiles/src/xcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<I: IO> HandleBasedPrecompile for CrossContractCall<I> {
let callback_count = call
.promise_count()
.checked_sub(1)
.ok_or(ExitError::Other(Cow::from(consts::ERR_INVALID_INPUT)))?;
.ok_or_else(|| ExitError::Other(Cow::from(consts::ERR_INVALID_INPUT)))?;
let router_exec_cost = costs::ROUTER_EXEC_BASE
+ NearGas::new(callback_count * costs::ROUTER_EXEC_PER_CALLBACK.as_u64());
let promise = PromiseCreateArgs {
Expand Down

0 comments on commit 7f535fe

Please sign in to comment.