I wanted to know whether the area of calldata you read causes a difference in the gas fees

The EVM is working with 32 B slots and calldata is padded to the next integer multiple of 32 B. However, the function selector is not considered in this which i find weird bc this not only causes the calldata length not to be an integer multiple of 32 B but also throws the alignment off

Jul 28, 2022, 9:34 PM
Haven't gotten around to measuring that. It's still on my todo list
So basically whether reading bytes [0:31] is cheaper than [4:35] bc the 32 B block you're reading is misaligned in the 2nd case which might mean than you need to read twice
You should be using Google
Jul 28, 2022, 9:42 PM

© 2024 Draquery.com All rights reserved.