hotfix: support for ticker and address in generateSwapCalldata

This commit is contained in:
lomonoshka
2023-11-09 19:03:47 +04:00
parent 9175d9ad1d
commit 8fe0c4314c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.20.17",
"version": "0.20.18",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -62,7 +62,7 @@ export async function generateSwapCalldataWithUnit({
let path = SafeArray.from(arrayLikePath);
const walletBalance = await getWalletBalance(
safeGet(assetToAddress, path.first().assetIn),
assetToAddress[path.first().assetIn] ?? path.first().assetIn.toLowerCase(),
receiverAddress,
unit.provider
);