Migrate to decimal chainId

This commit is contained in:
Aleksandr Kraiz
2022-05-10 18:42:31 +04:00
parent c25360a026
commit 56456292b4
8 changed files with 42 additions and 42 deletions

View File

@@ -107,7 +107,7 @@ export default async function deposit({
sources: ['wallet'],
});
unsignedTx.chainId = parseInt(chainId, 16);
unsignedTx.chainId = parseInt(chainId, 10);
unsignedTx.gasPrice = ethers.BigNumber.from(gasPriceWei);
unsignedTx.from = walletAddress;

View File

@@ -175,7 +175,7 @@ export default async function swapMarket({
type === 'exactSpend',
);
unsignedSwapThroughOrionPoolTx.chainId = parseInt(chainId, 16);
unsignedSwapThroughOrionPoolTx.chainId = parseInt(chainId, 10);
unsignedSwapThroughOrionPoolTx.gasPrice = ethers.BigNumber.from(gasPriceWei);
unsignedSwapThroughOrionPoolTx.from = walletAddress;

View File

@@ -98,7 +98,7 @@ export default async function withdraw({
sources: ['wallet'],
});
unsignedTx.chainId = parseInt(chainId, 16);
unsignedTx.chainId = parseInt(chainId, 10);
unsignedTx.gasPrice = ethers.BigNumber.from(gasPriceWei);
unsignedTx.from = walletAddress;