Forgot to add updated SwapHelper

This commit is contained in:
Karl Kempe 2022-01-20 19:38:36 +00:00
parent 41d2267fa7
commit 18eb999cad
1 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,8 @@ library SwapHelper {
address[2] path;
uint256 deadline;
uint24 poolFee;
uint8 swapType;
uint8 swapFunctionType;
uint8 swapCurrencyType;
}
function decodeVaaPayload(
@ -83,6 +84,9 @@ library SwapHelper {
decoded.poolFee = encodedVm.payload.toUint16(index);
index += 2;
decoded.swapType = encodedVm.payload.toUint8(index);
decoded.swapFunctionType = encodedVm.payload.toUint8(index);
index += 1;
decoded.swapCurrencyType = encodedVm.payload.toUint8(index);
}
}