mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
hotfix: fix calldata generation for nativeAsset => anyAsset
This commit is contained in:
@@ -221,11 +221,7 @@ async function processMultiFactorySwaps(
|
||||
curveRegistryAddress: string,
|
||||
provider: JsonRpcProvider
|
||||
) {
|
||||
const calls: BytesLike[] = [];
|
||||
if (swapDescription.srcToken === ZeroAddress) {
|
||||
const wrapCall = await generateWrapAndTransferCall(swapExecutorContractAddress, { value: amount });
|
||||
calls.push(wrapCall);
|
||||
}
|
||||
let calls: BytesLike[] = [];
|
||||
for (const swap of path) {
|
||||
switch (swap.factory) {
|
||||
case 'OrionV2': {
|
||||
|
||||
Reference in New Issue
Block a user