Skip to content

Remove redeemer from mintAssets in mint.ts and nft.ts#30

Merged
SynthLuvr merged 2 commits into
mainfrom
copilot/remove-redeemer-from-mint-assets
Mar 1, 2026
Merged

Remove redeemer from mintAssets in mint.ts and nft.ts#30
SynthLuvr merged 2 commits into
mainfrom
copilot/remove-redeemer-from-mint-assets

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

The script doesn't use redeemers, but a redeemer field was erroneously added to mintAssets calls during migration, causing script errors at runtime.

Changes

  • src/mint.ts / src/nft.ts: Drop the redeemer argument from mintAssets
- .mintAssets({
-   assets: Assets.fromRecord({ [token]: amount }),
-   redeemer: new Data.Constr({ index: 0n, fields: [] }),
- })
+ .mintAssets({
+   assets: Assets.fromRecord({ [token]: amount }),
+ })

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Comment thread src/mint.ts
Comment thread src/nft.ts
Copilot AI changed the title [WIP] Remove redeemer from mintAssets function Remove redeemer from mintAssets in mint.ts and nft.ts Mar 1, 2026
@SynthLuvr SynthLuvr marked this pull request as ready for review March 1, 2026 19:23
@SynthLuvr SynthLuvr merged commit 355da31 into main Mar 1, 2026
1 check passed
@SynthLuvr SynthLuvr deleted the copilot/remove-redeemer-from-mint-assets branch March 1, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants