fix build

This commit is contained in:
lomonoshka
2023-10-30 20:10:50 +04:00
parent 31efda9969
commit 43e0fa0abe

View File

@@ -249,7 +249,7 @@ async function processMultiFactorySwaps(
function wrapOrUnwrapIfNeeded(amount: BigNumberish, swapDescription: LibValidator.SwapDescriptionStruct, calls: BytesLike[]): BytesLike[] {
if (swapDescription.srcToken === ZeroAddress) {
const wrapCall = generateWrapAndTransferCall(swapDescription.dstReceiver, { value: swapDescription.amount });
const wrapCall = generateWrapAndTransferCall(swapDescription.dstReceiver, { value: amount });
calls = ([wrapCall] as BytesLike[]).concat(calls);
}
if (swapDescription.dstToken === ZeroAddress) {