Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonD3 committed Mar 6, 2024
1 parent b3dedf0 commit 19d3e43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/test/zks-apis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe("zks_estimateFee", function () {
const response: Fee = await provider.send("zks_estimateFee", [transaction]);

// Assert
expect(ethers.BigNumber.from(response.gas_limit)).to.eql(ethers.BigNumber.from("1447745"), "Unexpected gas_limit");
expect(ethers.BigNumber.from(response.gas_limit)).to.eql(ethers.BigNumber.from("1547720"), "Unexpected gas_limit");
expect(ethers.BigNumber.from(response.gas_per_pubdata_limit)).to.eql(
ethers.BigNumber.from("18750"),
"Unexpected gas_per_pubdata_limit"
Expand Down
3 changes: 2 additions & 1 deletion src/node/zks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ mod tests {
max_priority_fee_per_gas: None,
value: Some(U256::from(0)),
data: Some(vec![0, 0].into()),
input: Some(vec![0, 0].into()),
nonce: Some(U256::from(0)),
transaction_type: None,
access_list: None,
Expand All @@ -556,7 +557,7 @@ mod tests {

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

assert_eq!(result.gas_limit, U256::from(1784965));
assert_eq!(result.gas_limit, U256::from(987540));
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(18750));
Expand Down

0 comments on commit 19d3e43

Please sign in to comment.