From f6eecb8c6f4f46a51dddbdb4eceb129c4693867a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 9 Sep 2021 13:26:45 +0200 Subject: [PATCH] Fix gas costs that went out of sync in some tests due to a recent merge --- test/libsolidity/gasTests/abiv2_optimised.sol | 4 ++-- .../semanticTests/userDefinedValueType/calldata.sol | 4 ++-- .../semanticTests/userDefinedValueType/erc20.sol | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/libsolidity/gasTests/abiv2_optimised.sol b/test/libsolidity/gasTests/abiv2_optimised.sol index 074e75f1b..093acf49a 100644 --- a/test/libsolidity/gasTests/abiv2_optimised.sol +++ b/test/libsolidity/gasTests/abiv2_optimised.sol @@ -17,9 +17,9 @@ contract C { // optimize-yul: true // ---- // creation: -// codeDepositCost: 681000 +// codeDepositCost: 680600 // executionCost: 715 -// totalCost: 681715 +// totalCost: 681315 // external: // a(): 2285 // b(uint256): 4652 diff --git a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol index 68164f180..3dc662947 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol @@ -51,11 +51,11 @@ contract C { // compileViaYul: also // ---- // test_f() -> true -// gas irOptimized: 122655 +// gas irOptimized: 122656 // gas legacy: 125037 // gas legacyOptimized: 122605 // test_g() -> true -// gas irOptimized: 95940 +// gas irOptimized: 95969 // gas legacy: 100656 // gas legacyOptimized: 96057 // addresses(uint256): 0 -> 0x18 diff --git a/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol b/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol index 57826ebe4..155a4bd87 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/erc20.sol @@ -115,7 +115,7 @@ contract ERC20 { // ---- // constructor() // ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14 -// gas irOptimized: 460447 +// gas irOptimized: 462361 // gas legacy: 861547 // gas legacyOptimized: 420959 // totalSupply() -> 20 @@ -124,12 +124,12 @@ contract ERC20 { // gas legacyOptimized: 23368 // transfer(address,uint256): 2, 5 -> true // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x05 -// gas irOptimized: 48514 +// gas irOptimized: 48503 // gas legacy: 49572 // gas legacyOptimized: 48575 // decreaseAllowance(address,uint256): 2, 0 -> true // ~ emit Approval(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x00 -// gas irOptimized: 26316 +// gas irOptimized: 26327 // gas legacy: 27204 // gas legacyOptimized: 26317 // decreaseAllowance(address,uint256): 2, 1 -> FAILURE, hex"4e487b71", 0x11 @@ -138,7 +138,7 @@ contract ERC20 { // gas legacyOptimized: 24077 // transfer(address,uint256): 2, 14 -> true // ~ emit Transfer(address,address,uint256): #0x1212121212121212121212121212120000000012, #0x02, 0x0e -// gas irOptimized: 28614 +// gas irOptimized: 28603 // gas legacy: 29672 // gas legacyOptimized: 28675 // transfer(address,uint256): 2, 2 -> FAILURE, hex"4e487b71", 0x11