We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0313ff2 commit d358b09Copy full SHA for d358b09
src/CowWrapper.sol
@@ -127,7 +127,8 @@ abstract contract CowWrapper is ICowWrapper {
127
uint16 nextWrapperDataLen = uint16(bytes2(wrapperData[0:2]));
128
129
// Delegate to the wrapper's custom logic
130
- _wrap(settleData, wrapperData[2:2 + nextWrapperDataLen], wrapperData[2 + nextWrapperDataLen:]);
+ uint256 remainingWrapperDataStart = 2 + nextWrapperDataLen;
131
+ _wrap(settleData, wrapperData[2:remainingWrapperDataStart], wrapperData[remainingWrapperDataStart:]);
132
}
133
134
/// @notice Internal function containing the wrapper's custom logic
0 commit comments