Skip to content
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

sendMessage: Parameter count mismatch #6

Open
kepamuk opened this issue Nov 18, 2022 · 2 comments
Open

sendMessage: Parameter count mismatch #6

kepamuk opened this issue Nov 18, 2022 · 2 comments

Comments

@kepamuk
Copy link

kepamuk commented Nov 18, 2022

Can somebody explain why i got this error ?

image

when I use this script

 public async getEverWalletTransaction(
    recipient: string,
    price: any,
    payload: any,
  ): Promise<string> {
    console.log(this.wallet.address);
    console.log(recipient);
    console.log(price.toString());
    console.log(payload);
    const { transaction } = await this.ton.rawApi.sendMessage({
      sender: this.wallet.address,
      recipient,
      amount: price.toString(),
      bounce: true,
      payload,
    });

    return transaction.id.hash;
  }
@ilyar
Copy link

ilyar commented Nov 25, 2022

@kepamuk For an answer, it is always good to make a minimally reproducible example, without it there is an assumption that your code interacts with a non-standard contract.

@shravanandoria
Copy link

when calling your smart contract functions, you have passed wrong number of arguments, check your frontend function & smart contract function & also double check your ABI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants