From 19d3e43ce3b2191f8bb67213cc5006e4316625ff Mon Sep 17 00:00:00 2001 From: AntonD3 Date: Wed, 6 Mar 2024 15:54:51 +0100 Subject: [PATCH] Fix tests --- e2e-tests/test/zks-apis.test.ts | 2 +- src/node/zks.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e-tests/test/zks-apis.test.ts b/e2e-tests/test/zks-apis.test.ts index 80984965..3f140faa 100644 --- a/e2e-tests/test/zks-apis.test.ts +++ b/e2e-tests/test/zks-apis.test.ts @@ -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" diff --git a/src/node/zks.rs b/src/node/zks.rs index 4b26ab6d..0c3586fb 100644 --- a/src/node/zks.rs +++ b/src/node/zks.rs @@ -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, @@ -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));