everscale-inpage-provider icon indicating copy to clipboard operation
everscale-inpage-provider copied to clipboard

sendMessage: Parameter count mismatch

Open kepamuk opened this issue 3 years ago • 2 comments

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;
  }

kepamuk avatar Nov 18 '22 14:11 kepamuk

@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.

ilyar avatar Nov 25 '22 10:11 ilyar

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

shravanandoria avatar Aug 20 '23 07:08 shravanandoria