Skip to content

Contract supplied an invalid parameter #12

@oriana13

Description

@oriana13

I have a little problem because my mint does not pass because of invalid parameters, I don't quite understand why..., in the entrypoint call I deliberately did not put the token_id parameter because otherwise the transaction does not even appear on the explorer, by not putting it, the transaction appears in the explorer but it fails.
In my code, when I enter the parameters address, amount, symbol, id it returns me this: java.lang.Exception: Wrong number of parameters to contract entrypoint. But when I put the parameters address, amount, symbol the transaction is done but it fails and on the explorer you can see that in the json the parameters are null...
` // Sets amount and fee for the transaction.
BigDecimal amount = new BigDecimal("0"); // To call a contract, you send 0 tez.
BigDecimal fee = new BigDecimal("0.1"); // Minimum fee to call contracts.
System.out.println("Calling the contract (inserting customer 1, please wait a minute)...");

image
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions