fix return eth value type BigInt => bigint

This commit is contained in:
lomonoshka
2023-11-30 14:28:20 +04:00
parent e0acb78d4f
commit 9d794b5428
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -54,7 +54,7 @@ export async function generateSwapCalldataWithUnit({
}: GenerateSwapCalldataWithUnitParams): Promise<{
calldata: string;
swapDescription: LibValidator.SwapDescriptionStruct;
value: BigInt;
value: bigint;
}> {
if (arrayLikePath == undefined || arrayLikePath.length == 0) {
throw new Error("Empty path");
@@ -100,7 +100,7 @@ export async function generateSwapCalldata({
}: GenerateSwapCalldataParams): Promise<{
calldata: string;
swapDescription: LibValidator.SwapDescriptionStruct;
value: BigInt;
value: bigint;
}> {
const wethAddress = await addressLikeToString(wethAddressLike);
const curveRegistryAddress = await addressLikeToString(curveRegistryAddressLike);