@moonbeam-network/xcm-builder 1.0.0-dev.274 → 1.0.0-dev.275

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/build/index.d.ts CHANGED
@@ -506,6 +506,7 @@ interface FeeConfigBuilderParams {
506
506
  }
507
507
  interface BridgeFeeConfigBuilderParams {
508
508
  asset: ChainAsset;
509
+ feeAsset: ChainAsset;
509
510
  address: string;
510
511
  balance?: AssetAmount;
511
512
  destination: AnyChain;
package/build/index.mjs CHANGED
@@ -3944,11 +3944,11 @@ function outboundQueueApi() {
3944
3944
  return {
3945
3945
  calculateFee: () => {
3946
3946
  return {
3947
- build: ({ address, asset, balance }) => {
3947
+ build: ({ address, balance, feeAsset }) => {
3948
3948
  const args = [
3949
3949
  {
3950
3950
  MintForeignToken: {
3951
- tokenId: asset.getAssetId(),
3951
+ tokenId: feeAsset.getAssetId(),
3952
3952
  recipient: address,
3953
3953
  amount: balance?.amount
3954
3954
  }