Skip to content

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

@barbmay

Description

@barbmay

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\"}"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions