Open santiagoziel opened 1 year ago
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.
@VledicFranco @santiagoziel I didn't build that one but those tutorials are in the https://github.com/aiken-lang/site repo. Not in this one. We'll review the tutorial and see what went wrong.
tey this
const beneficiaryAddress = 'addr1...'; // Replace with the actual beneficiary address
const tx = await lucid .newTx() .collectFrom(utxos, redeemer) .addSigner(beneficiaryAddress) // Use the beneficiary address .validFrom(currentTime) .validTo(laterTime) .attachSpendingValidator(from) .complete();
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.