Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction submission fails when creating datum of kind "asHash" (PPViewHashesDontMatch) #261

Closed
rawvie-ngit opened this issue Aug 27, 2024 · 6 comments
Assignees

Comments

@rawvie-ngit
Copy link

rawvie-ngit commented Aug 27, 2024

Everything works when datum is of kind "inline", but with kind "asHash", i get PPViewHashesDontMatch error

 const tx = await providerWallet
    .newTx()
    .pay.ToContract(
      validatorAddress,
      { kind: 'asHash', value: Data.void() },
      value
    )
    .complete();
    "success": false,
    "message": "Error: {\"contents\":{\"contents\":{\"contents\":{\"era\":\"ShelleyBasedEraConway\",\"error\":[\"ConwayUtxowFailure (PPViewHashesDontMatch (SJust (SafeHash \\\"2f50ea2546f8ce020ca45bfcf2abeb02ff18af2283466f888ae489184b3d2d39\\\")) (SJust (SafeHash \\\"244926529564c04ffdea89005076a6b6aac5e4a2f38182cd48bfbc734b3be296\\\")))\"],\"kind\":\"ShelleyTxValidationError\"},\"tag\":\"TxValidationErrorInCardanoMode\"},\"tag\":\"TxCmdTxSubmitValidationError\"},\"tag\":\"TxSubmitFail\"}"
}
@rawvie-ngit rawvie-ngit changed the title Transaction submission fails when creating datum of kind "asHash" Transaction submission fails when creating datum of kind "asHash" (PPViewHashesDontMatch) Aug 27, 2024
@solidsnakedev
Copy link
Contributor

solidsnakedev commented Aug 30, 2024

what version are you using?

@rawvie-ngit
Copy link
Author

was using 0.3.15 previously, just tried it with 0.3.18 getting the same error with both

@hadelive
Copy link
Collaborator

I guess this problem comes from script integrity hashes.
dcSpark/cardano-multiplatform-lib#351

@rawvie-ngit
Copy link
Author

a new version for spacebudz/lucid was just released and it is working with that

@SynthLuvr
Copy link

Can confirm that this is fixed in lucid-cardano

@hadelive hadelive mentioned this issue Sep 4, 2024
@hadelive
Copy link
Collaborator

hadelive commented Sep 4, 2024

close #285

@hadelive hadelive closed this as completed Sep 4, 2024
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

No branches or pull requests

4 participants