Rewrite assembly slot offset for consistency (#5325)

This commit is contained in:
Hadrien Croubois
2025-05-07 21:54:42 +02:00
committed by GitHub
parent bdf8affec3
commit 633a1c85ca
8 changed files with 12 additions and 13 deletions

View File

@ -204,7 +204,7 @@ library ERC7579Utils {
revert ERC7579DecodingError();
assembly ("memory-safe") {
executionBatch.offset := add(add(executionCalldata.offset, arrayLengthOffset), 32)
executionBatch.offset := add(add(executionCalldata.offset, arrayLengthOffset), 0x20)
executionBatch.length := arrayLength
}
}