Provider (tested with Blokfrost on Preview) evaluateTx return EvalRedeemer.redeemer_tag == "certificate" when tx register certificate and delegate to a stake pool. Applying the evaluation then fails due to applyUPLCEvalProvider expecting EvalRedeemer.redeemer_tag == "publish":
export const toCMLRedeemerTag = (tag: string) => {
switch (tag) {
case "spend":
return CML.RedeemerTag.Spend;
case "mint":
return CML.RedeemerTag.Mint;
case "publish":
return CML.RedeemerTag.Cert;
case "withdraw":
return CML.RedeemerTag.Reward;
case "vote":
return CML.RedeemerTag.Voting;
case "propose":
return CML.RedeemerTag.Proposing;
default:
throw new Error(`Exhaustive check failed: Unhandled case ${tag}`);
}
};
Provider (tested with Blokfrost on Preview)
evaluateTx
returnEvalRedeemer.redeemer_tag == "certificate"
when tx register certificate and delegate to a stake pool. Applying the evaluation then fails due toapplyUPLCEvalProvider
expectingEvalRedeemer.redeemer_tag == "publish"
:Here is a tx you can test with: