@moonbeam-network/mrl 1.0.0-dev.294 → 1.0.0-dev.295

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.mjs CHANGED
@@ -16936,6 +16936,11 @@ var SnowbridgeService = class _SnowbridgeService {
16936
16936
  async estimateApproveAndSendFee(address, transfer, allowanceSlotNumber) {
16937
16937
  const { args } = transfer;
16938
16938
  const { tokenAddress, amount } = args;
16939
+ if (!allowanceSlotNumber) {
16940
+ throw new Error(
16941
+ "Allowance slot is required to calculate the fee for approve and send"
16942
+ );
16943
+ }
16939
16944
  const contract = this.buildContractConfig(transfer);
16940
16945
  try {
16941
16946
  const approveData = encodeFunctionData({