I just want to know the right place to add the: msgValue property
buyOptions.params = {
tokenSale: {
token: bnbAddress,
amount: ethers.utils.parseUnits(amountToApprove, “ether”).toString(),
referrer: refCode,
refCode: genCode
},
msgValue: ethers.utils.parseUnits(amountToApprove, “ether”).toString(),
};
const tx = await runContractFunction({
params: buyOptions,
onError: (error) => {
console.log(error)
dispatch({
type: “error”,
message: error.data.message,
title: “presale”,
position: “topR”
})
},