@shapeshiftoss/swapper 11.5.7 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ async function cowApprovalNeeded({ adapter, web3 }, { quote, wallet }) {
17
17
  details: { assetNamespace },
18
18
  });
19
19
  }
20
- const receiveAddress = await adapter.getAddress({ wallet });
20
+ const receiveAddress = await adapter.getAddress({ wallet, bip44Params: quote.bip44Params });
21
21
  const allowanceResult = await (0, helpers_1.getERC20Allowance)({
22
22
  web3,
23
23
  erc20AllowanceAbi: erc20Allowance_abi_1.erc20AllowanceAbi,
@@ -29,7 +29,7 @@ async function cowBuildTrade(deps, input) {
29
29
  });
30
30
  }
31
31
  const buyToken = buyAsset.assetId !== caip_1.ethAssetId ? buyAssetErc20Address : constants_1.COW_SWAP_ETH_MARKER_ADDRESS;
32
- const receiveAddress = await adapter.getAddress({ wallet });
32
+ const receiveAddress = await adapter.getAddress({ wallet, bip44Params });
33
33
  const normalizedSellAmount = (0, helpers_1.normalizeAmount)(sellAmount);
34
34
  /**
35
35
  * /v1/quote
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "11.5.7",
3
+ "version": "12.0.1",
4
4
  "description": "An interface and implementations to trade coins via various protocols",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "peerDependencies": {
33
33
  "@shapeshiftoss/asset-service": "^8.0.1",
34
34
  "@shapeshiftoss/caip": "^8.0.0",
35
- "@shapeshiftoss/chain-adapters": "^9.0.1",
35
+ "@shapeshiftoss/chain-adapters": "^10.0.0",
36
36
  "@shapeshiftoss/errors": "^1.1.2",
37
37
  "@shapeshiftoss/hdwallet-core": "^1.33.0",
38
38
  "@shapeshiftoss/types": "^8.1.0"
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@shapeshiftoss/asset-service": "^8.0.1",
42
42
  "@shapeshiftoss/caip": "^8.0.0",
43
- "@shapeshiftoss/chain-adapters": "^9.0.1",
43
+ "@shapeshiftoss/chain-adapters": "^10.0.0",
44
44
  "@shapeshiftoss/errors": "^1.1.2",
45
45
  "@shapeshiftoss/hdwallet-core": "^1.33.0",
46
46
  "@shapeshiftoss/types": "^8.1.0",