I am Facing this error while transaction submission.
""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch (SJust (SafeHash \"268fc512be7cdc13c5e3da75d2888a5790c01173b32a38b4da2972a3b0059ee2\")) (SJust (SafeHash \"47120f8f4cf7f65759c1a535d34e593e271bcd69fb9719359f8ec23cd73f0221\"))))])""
I am following the mesh api tutorial https://meshjs.dev/apis/transaction/smart-contract#plutusminting
The code is exact same as given in tutorial, but i am stuck at this error for so long. For safe side i am also pasting the code here. Kindly suggest a solution for it, will be very helpful for me.
Thanks in Advance
import { AssetMetadata, Mint, Action, PlutusScript } from '@meshsdk/core';
const script: PlutusScript = {
code: plutusMintingScriptCbor,
version: 'V2',
};
const redeemer: Partial<Action> = {
tag: 'MINT',
};
const tx = new Transaction({ initiator: wallet });
// define asset#1 metadata
const assetMetadata1: AssetMetadata = {
"name": "Mesh Token",
"image": "ipfs://QmRzicpReutwCkM6aotuKjErFCUD213DpwPq6ByuzMJaua",
"mediaType": "image/jpg",
"description": "This NFT is minted by Mesh (https://meshjs.dev/)."
};
const asset1: Mint = {
assetName: 'MeshToken',
assetQuantity: '1',
metadata: assetMetadata1,
label: '721',
recipient: 'addr_test1vpvx0sacufuypa2k4sngk7q40zc5c4npl337uusdh64kv0c7e4cxr',
};
tx.mintAsset(
script,
asset1,
redeemer,
);
const unsignedTx = await tx.build();
const signedTx = await wallet.signTx(unsignedTx);
const txHash = await wallet.submitTx(signedTx);```