Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix tests after the gas changes #341

Merged
2 changes: 1 addition & 1 deletion src/node/in_memory_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ mod tests {
Nonce(0),
Fee {
gas_limit: U256::from(100_000_000),
max_fee_per_gas: U256::from(50_000_000),
max_fee_per_gas: U256::from(150_000_000),
max_priority_fee_per_gas: U256::from(50_000_000),
gas_per_pubdata_limit: U256::from(50000),
},
Expand Down
6 changes: 3 additions & 3 deletions src/node/zks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,10 @@ mod tests {

let result = node.estimate_fee(mock_request).await.unwrap();

assert_eq!(result.gas_limit, U256::from(4490368));
assert_eq!(result.max_fee_per_gas, U256::from(37500000));
assert_eq!(result.gas_limit, U256::from(168030));
assert_eq!(result.max_fee_per_gas, U256::from(100000000));
assert_eq!(result.max_priority_fee_per_gas, U256::from(0));
assert_eq!(result.gas_per_pubdata_limit, U256::from(50000));
assert_eq!(result.gas_per_pubdata_limit, U256::from(375));
}

#[tokio::test]
Expand Down
4 changes: 2 additions & 2 deletions src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl Default for TransactionBuilder {
tx_hash: H256::repeat_byte(0x01),
from_account_private_key: K256PrivateKey::from_bytes(H256::random()).unwrap(),
gas_limit: U256::from(4_000_000),
max_fee_per_gas: U256::from(50_000_000),
max_fee_per_gas: U256::from(150_000_000),
max_priority_fee_per_gas: U256::from(50_000_000),
}
}
Expand Down Expand Up @@ -542,7 +542,7 @@ pub fn deploy_contract<T: ForkSource + std::fmt::Debug + Clone>(
nonce,
Fee {
gas_limit: U256::from(400_000_000),
max_fee_per_gas: U256::from(50_000_000),
max_fee_per_gas: U256::from(150_000_000),
max_priority_fee_per_gas: U256::from(50_000_000),
gas_per_pubdata_limit: U256::from(50000),
},
Expand Down
Loading