@paxoslabs/amplify-sdk 0.1.1-beta.0 → 0.1.1-beta.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.
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { calculateDeadline } from './chunk-REKEQLQA.mjs';
8
8
  import { WAD } from './chunk-7RWWVUHP.mjs';
9
9
  import { findVaultByConfig, APIError, getAssetsFromCache, DEFAULT_APPROVAL_AMOUNT, fetchSupportedAssets, ATOMIC_QUEUE_CONTRACT_ADDRESS, DEFAULT_DEADLINE } from './chunk-CUGK4ZBJ.mjs';
10
10
  export { APIError, fetchSupportedAssets, fetchVaults, findVaultByConfig, getAssetsFromCache, getCache, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, refreshVaultCache } from './chunk-CUGK4ZBJ.mjs';
11
- import { parseUnits, erc20Abi, toBytes, hexToSignature } from 'viem';
11
+ import { parseUnits, erc20Abi, stringToHex, hexToSignature } from 'viem';
12
12
 
13
13
  async function prepareApproveDepositTokenTxData({
14
14
  yieldType,
@@ -416,7 +416,7 @@ async function prepareDepositTxData(params) {
416
416
  depositAmountAsBigInt,
417
417
  minimumMint,
418
418
  recipientAddress,
419
- toBytes(partnerCode || "")
419
+ stringToHex(partnerCode || "")
420
420
  ],
421
421
  chainId: normalizedChainId
422
422
  };
@@ -787,7 +787,7 @@ async function prepareDepositWithPermitTxData(params) {
787
787
  depositAmountAsBigInt,
788
788
  minimumMint,
789
789
  recipientAddress,
790
- toBytes(partnerCode || ""),
790
+ stringToHex(partnerCode || ""),
791
791
  deadline,
792
792
  v,
793
793
  r,