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));