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
Invalid Character error while using Lucid #83
Comments
I recommend you to log the variables you use there. The |
This is what I get when I log the address and token. Are there supposed to be quotes around the address?
|
Seems like you have a typo. You wrote |
Thanks for the advice, but that wasn't a type. That is how I defined the input, it stands for addressC(ustomer). Here is more of the code
I can also confirm that the token variable works. If I replace addressC with an address in quotes, the code works. However, I am still very confused why my addressC variable does not work. |
Oh sorry I misunderstood not having looked at the full function. Hmm transaction looks good, have you tried logging the process.env.POOLSEED? Or remove the try-catch to see which line is the problem. |
The code works when I replace the addressC with a address in quotes. So I am sure the POOLSEED .env is working. Also I have used console.log and am nearly certain the error is the "let tx = " line I have a theory that the issue is because my addressC variable has quotes around it, where you can see my token variables does not return with quotes around it. Seems a weird issue. |
I ended up solving this by removing the double quotes within the variable. Thanks everyone! |
Hello, was wondering if you have encountered this error before, and why lucid is throwing it at me. I am trying to use the payToAddress function but with a variable for address. Here is relevant code.
error I get: error invalid character (code=")
The text was updated successfully, but these errors were encountered: