I don’t understand what you want
you want to have a check in that function that checks the amount sent or you want to somehow metamask to automatically send that specific amount when you call the function?
I don’t understand what you want
you want to have a check in that function that checks the amount sent or you want to somehow metamask to automatically send that specific amount when you call the function?
i want to send the preset amount of 1 bnb, i dont want to set it while calling the function. the contract will be: i set a preset value of 1 bnb and a wallet address in the code. when a user call the function he just transfer the preset value of 1 bnb(which is set by me). user dont need to set the amount by himself.
that is not possible to do, the user has to set the value that he wants to send
ok…thank you for your time.