Mateus Oliveira

Results 13 comments of Mateus Oliveira

Thank you for your answer. > By Plutus-controlled minting do you mean you would have posted some UTxO with your script and then every time you want to mint mroe...

Thank you very much @Montel98, that was very clear.

I am getting an `"INPUTS_EXHAUSTED"` error when the app tries to do coin selection. Am I missing something? Do I need to add ADA to an additional output?

Oh I see now, I added the output with the minted values before making the coin selection, so the app went crazy trying to find an input with the assets...

> The index should correspond to the order of your inputs (if this is incorrectly set you will get a missing or extra redeemer error). If you are not spending...

Of course, I don't think it will be very helpful, but here it is: ``` Uncaught (in promise) RuntimeError: unreachable at 35c481a3c170e5a6ce28.wasm:0xb3eee at 35c481a3c170e5a6ce28.wasm:0xd494f at 35c481a3c170e5a6ce28.wasm:0xe5927 at 35c481a3c170e5a6ce28.wasm:0xe4580 at 35c481a3c170e5a6ce28.wasm:0xe598b...

I know this error is related to the redeemer, because when I comment the redeemer lines, the error disappears

This is the code I'm using ```javascript const redeemers = Loader.Cardano.Redeemers.new(); redeemers.add(mintRedeemer("0")); txBuilder.set_redeemers(Loader.Cardano.Redeemers.from_bytes(redeemers.to_bytes())); ``` Where `mintRedeemer` is defined as ```javascript function mintRedeemer(index) { // Create the redeemer data const redeemerData...

Thank you again for your answer, I did change to `set_fee` and manually created the outputs (simulating `add_change`), but I still receive the same error (but in a different method)....