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\"}"
}
Everything works when datum is of kind "inline", but with kind "asHash", i get
PPViewHashesDontMatcherror