Skip to content

Commit

Permalink
chore: update validation check
Browse files Browse the repository at this point in the history
Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com>
  • Loading branch information
petertonysmith94 and Torres-ssf authored Jan 9, 2025
1 parent 0179db4 commit 62dc663
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const getBurnableAssetCount = (
const { inputs, outputs } = opts;
const coinInputs = new Set(inputs.filter(isRequestInputCoin).map((input) => input.assetId));
// If there is a message input without data, we need to add the base asset to the set
if (inputs.some(isRequestInputMessageWithoutData)) {
if (inputs.some((i) => isRequestInputMessage(i) && bn(i.amount).gt(0))) {
coinInputs.add(baseAssetId);
}
const changeOutputs = new Set(
Expand Down

0 comments on commit 62dc663

Please sign in to comment.