Fix script integrity hash mismatch (error 3113) for CIP-0069 no-redeemer minting#33
Closed
Copilot wants to merge 7 commits into
Closed
Fix script integrity hash mismatch (error 3113) for CIP-0069 no-redeemer minting#33Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
…r (3113) Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix transaction balance calculation error due to unknown inputs
Fix script integrity hash missing from mint transactions (error 3113)
Mar 1, 2026
…s reference scripts Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot
AI
changed the title
Fix script integrity hash missing from mint transactions (error 3113)
Fix script integrity hash mismatch (error 3113) for CIP-0069 no-redeemer minting
Mar 1, 2026
…nsactions Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot
AI
changed the title
Fix script integrity hash mismatch (error 3113) for CIP-0069 no-redeemer minting
Fix error 3113: correct script_data_hash encoding for CIP-0069 no-redeemer minting
Mar 1, 2026
Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot
AI
changed the title
Fix error 3113: correct script_data_hash encoding for CIP-0069 no-redeemer minting
Fix script integrity hash mismatch (error 3113) for CIP-0069 no-redeemer minting
Mar 1, 2026
Copilot stopped work on behalf of
SynthLuvr due to an error
March 1, 2026 22:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Transactions using CIP-0069 Plutus reference scripts for minting (no explicit redeemer) were rejected on-chain with error 3113:
providedScriptIntegritydidn't matchcomputedScriptIntegrity.Root causes
1.
script_data_hashnever computed for CIP-0069 txsTxBuilderImplonly triggeredscript_data_hashcomputation whenredeemers.length > 0. CIP-0069 minting uses no witness-set redeemer, so the hash was omitted or a placeholder was not included in fee estimation.2. Wrong CBOR encoding for absent redeemers
hashScriptDataserialized empty redeemers as0x80(CBOR empty array). Conway ledger requires0xa0(CBOR empty map) when redeemers are absent — producingcdde88...instead of the expected870bd0....3. Invalid patch file hunk headers
The patch appended in a prior iteration had malformed
@@line-count headers and missingdiff --git/indexlines, causingpnpm installto fail withhunk header integrity check failed.Changes (
patches/@evolution-sdk__evolution@0.3.19.patch)dist/utils/Hash.js+src/utils/Hash.ts— add branch inhashScriptDatafor the CIP-0069 case (no redeemers, no datums):dist/sdk/builders/TxBuilderImpl.js+src/sdk/builders/TxBuilderImpl.ts— computescript_data_hash(and include placeholder during fee estimation) whenever Plutus reference inputs are present, even with zero explicit redeemers.dist/sdk/provider/internal/BlockfrostEffect.js+src/sdk/provider/internal/BlockfrostEffect.ts— forwardscriptfield on UTxOs passed toevaluateTx, required for reference script resolution.Patch file regenerated from scratch using
git diff --no-indexagainst original store files, producing correct@@hunk headers andindexlines.pnpm-lock.yamlupdated with new patch hash.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.