You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a beginner in Cardano development, testing out Aiken and Lucid, and I'm currently facing issues with the tutorial located here: https://aiken-lang.org/example--vesting.
While the "Hello World" example worked fine, the 'Vesting' tutorial has been problematic, particularly when unlocking the funds. I've encountered numerous errors, primarily around the following line of code:
consttx=awaitlucid.newTx().collectFrom(utxos,redeemer).addSigner(awaitlucid.wallet.address())// this should be beneficiary address.validFrom(currentTime).validTo(laterTime).attachSpendingValidator(from).complete();
Expected Behavior
The tutorial's example code should execute without errors, specifically the transaction should be successfully created and the funds should be unlocked as per the steps outlined in the tutorial.
Current Behavior
Initially, The code on the examaple would not compile, i added types and fixed a variable name.
Then I received a transaction submission error:
After addressing this by removing the .validFrom and .validTo lines to match the previous example, I started receiving another error:
error: Uncaught (in promise) "Redeemer (Spend, 0): The provided Plutus code called 'error'.\n\nExBudget {\n mem: 13835841,\n cpu: 9936288424,\n}\n\n"
Steps to Reproduce & Attempted Solutions
Im running the tutorial code on the Preprod network. I've tried the following steps to resolve this:
Looked up the error message, but no clear explanations or solutions were found.
Adjusted the Smart Contract to take in a redeemer, as some people encountered a similar error when sending the wrong redeemer to a Smart Contract.
Stripped most of the logic from the Smart Contract, considering the error message seemed to hint at exceeding the node's budget. This didn't resolve the issue.
Made both the "owner" and the "beneficiary" work with the same key pair. ( This worked once but failed on the next attempt)
Checked the UTXOs, waited for a certain number of confirmations, tried passing only one UTXO, and made several other minor adjustments.
Despite these attempts, the issue persists. The few times it did work, it failed again on the next try, leading me to believe that the successful attempts might have been due to luck rather than a concrete solution.
The text was updated successfully, but these errors were encountered:
Also to add, trying the same tutorial, the code as it is in the tutorial doesn't even compile. and the namings between the functions are a bit confusing.
System Specifications
Problem Description
I'm a beginner in Cardano development, testing out Aiken and Lucid, and I'm currently facing issues with the tutorial located here: https://aiken-lang.org/example--vesting.
While the "Hello World" example worked fine, the 'Vesting' tutorial has been problematic, particularly when unlocking the funds. I've encountered numerous errors, primarily around the following line of code:
Expected Behavior
The tutorial's example code should execute without errors, specifically the transaction should be successfully created and the funds should be unlocked as per the steps outlined in the tutorial.
Current Behavior
Initially, The code on the examaple would not compile, i added types and fixed a variable name.
Then I received a transaction submission error:
After addressing this by removing the .validFrom and .validTo lines to match the previous example, I started receiving another error:
Steps to Reproduce & Attempted Solutions
Im running the tutorial code on the Preprod network. I've tried the following steps to resolve this:
Despite these attempts, the issue persists. The few times it did work, it failed again on the next try, leading me to believe that the successful attempts might have been due to luck rather than a concrete solution.
The text was updated successfully, but these errors were encountered: