Skip to content

Commit

Permalink
Improve activation-fee log message
Browse files Browse the repository at this point in the history
  • Loading branch information
gligneul committed Nov 8, 2024
1 parent 4c9472c commit 22d944c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions main/src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use crate::{
constants::{ARB_WASM_H160, ONE_ETH, TOOLCHAIN_FILE_NAME},
macros::*,
project::{self, extract_toolchain_channel, BuildConfig},
util::{color::Color, sys, text},
util::{
color::{Color, GREY, LAVENDER},
sys, text,
},
CheckConfig, DataFeeOpts,
};
use alloy_primitives::{Address, B256, U256};
Expand Down Expand Up @@ -267,11 +270,11 @@ pub async fn check_activate(

let bump = opts.data_fee_bump_percent;
let adjusted_data_fee = data_fee * U256::from(100 + bump) / U256::from(100);
print!("{}", "wasm data fee: ".grey());
print!("{}", format_data_fee(adjusted_data_fee));
print!("{}", " (originally ".grey());
print!("{}", format_data_fee(data_fee));
greyln!(" with {bump}% bump)");
greyln!(
"wasm data fee: {} {GREY}(originally {}{GREY} with {LAVENDER}{bump}%{GREY} bump)",
format_data_fee(adjusted_data_fee),
format_data_fee(data_fee)
);

Ok(adjusted_data_fee)
}

0 comments on commit 22d944c

Please sign in to comment.