@@ -31,18 +31,18 @@ abstract contract SettlerMetaTxn is Permit2PaymentMetaTxn, SettlerBase {
31
31
// revert later.
32
32
assembly ("memory-safe" ) {
33
33
let ptr := mload (0x40 )
34
- let hashesLength := shl (5 , actions.length )
34
+ let hashesLength := shl (0x05 , actions.length )
35
35
for {
36
36
let i := actions.offset
37
37
let dst := ptr
38
38
let end := add (i, hashesLength)
39
39
} lt (i, end) {
40
- i := add (i, 0x20 )
41
- dst := add (dst, 0x20 )
40
+ i := add (0x20 , i )
41
+ dst := add (0x20 , dst )
42
42
} {
43
43
let src := add (actions.offset, calldataload (i))
44
44
let length := calldataload (src)
45
- calldatacopy (dst, add (src, 0x20 ), length)
45
+ calldatacopy (dst, add (0x20 , src ), length)
46
46
mstore (dst, keccak256 (dst, length))
47
47
}
48
48
result := keccak256 (ptr, hashesLength)
@@ -62,8 +62,8 @@ abstract contract SettlerMetaTxn is Permit2PaymentMetaTxn, SettlerBase {
62
62
assembly ("memory-safe" ) {
63
63
let ptr := mload (0x40 )
64
64
mstore (ptr, SLIPPAGE_AND_ACTIONS_TYPEHASH)
65
- calldatacopy (add (ptr, 0x20 ), slippage, 0x60 )
66
- mstore (add (ptr, 0x80 ), arrayOfBytesHash)
65
+ calldatacopy (add (0x20 , ptr ), slippage, 0x60 )
66
+ mstore (add (0x80 , ptr ), arrayOfBytesHash)
67
67
result := keccak256 (ptr, 0xa0 )
68
68
}
69
69
}
0 commit comments