Skip to content

Commit d358b09

Browse files
committed
add remaining wrapper data start variable
1 parent 0313ff2 commit d358b09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CowWrapper.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ abstract contract CowWrapper is ICowWrapper {
127127
uint16 nextWrapperDataLen = uint16(bytes2(wrapperData[0:2]));
128128

129129
// Delegate to the wrapper's custom logic
130-
_wrap(settleData, wrapperData[2:2 + nextWrapperDataLen], wrapperData[2 + nextWrapperDataLen:]);
130+
uint256 remainingWrapperDataStart = 2 + nextWrapperDataLen;
131+
_wrap(settleData, wrapperData[2:remainingWrapperDataStart], wrapperData[remainingWrapperDataStart:]);
131132
}
132133

133134
/// @notice Internal function containing the wrapper's custom logic

0 commit comments

Comments
 (0)