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

ConwayUtxowFailure #943

Closed
ariady-putra opened this issue Sep 5, 2024 · 2 comments
Closed

ConwayUtxowFailure #943

ariady-putra opened this issue Sep 5, 2024 · 2 comments

Comments

@ariady-putra
Copy link

Hello, I'm developing a dApp and I'm facing the following error when submitting a transaction:

...
"ShelleyBasedEraConway","error":["ConwayUtxowFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly (PlutusFailure "\nThe PlutusV2 script failed
...
"kind":"ShelleyTxValidationError"},"tag":"TxValidationErrorInCardanoMode"},"tag":"TxCmdTxSubmitValidationError"},"tag":"TxSubmitFail"}

the full log: https://gist.githubusercontent.com/ariady-putra/99d8a4592ce8aa1cdc7348a7d2a16640/raw/a390bc8fd5b2137b36c224a2b700d4f853cfd430/nami

The script used to work before Chang, during Chang it was the collateral issue, and now this.

Nami v3.8.1 - Preprod

My code:

// "lucid-cardano": "0.10.10" - it's released yesterday
// I haven't been able to successfully convert my whole project using a different offchain library

async function constructTx(...) {
  ...

  //#region compose Tx
  let newTx = lucid.newTx().validFrom(time).addSigner(address);
  if (spendVaultValidator) newTx = newTx.attachSpendingValidator(spendVaultValidator); // otherwise the script is referenced instead
  if (refInputUTXOs.length) newTx = newTx.readFrom(refInputUTXOs);
  if (inputUTXOs.length) newTx = newTx.collectFrom(inputUTXOs, redeemer).payToContract(vaultAddress, { inline: datum }, vaultLockToken);
  if (feeAmount) newTx = newTx.payToAddress(treasuryAddress, { [feeToken || "lovelace"]: BigInt(feeAmount) });
  //#endregion

  const tx = await newTx.complete();
  return { tx, updatedVault };
}

async function submitTx({ tx, updatedVault }: TxConstructed): Promise<TxSubmitted> {
  const signedTx = await tx.sign().complete();
  const txHash = await signedTx.submit();
  return { txHash, updatedVault };
}

Is there any clue regarding the ConwayUtxowFailure? Thanks

@ariady-putra
Copy link
Author

I'm closing for now, not sure whether it's a wallet issue or library issue.

@ariady-putra ariady-putra closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
@ariady-putra
Copy link
Author

I just noticed this in the middle of the error messages,

The machine terminated part way through evaluation due to overspending the budget.
The budget when the machine terminated was:
({cpu: -40662\\n| mem: 1000})
Negative numbers indicate the overspent budget;

Weird, it used to work before Chang. Need to rework the script on my side

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

1 participant