So I am trying to use a method directly on etherscan.io (using "Write Contract" on the contract whose method I am trying to use) and it asks me for some parameters. Some of the parameters require me to input "v", "r" and "s" values for me to use this method (just to add, this method is for swapping some tokens); however, how would I know the v, r, s values of the transaction before I have even sent it? To add to this, I have checked other people's inputs (who have used the method multiple times) on tenderly, and when they have used this method, each time their v, r, s input values for the parameters to this method are the same on each of the occasions that these people have used the method. Am I missing something? Do user's addresses have their own specific v, r, s values tied to them that never changes, and is that what I am supposed to use as an input for this method? Am I not supposed to be using the v, r and s values of the transaction itself, but of something else instead, if so, what is that something else?
I have read through multiple docs and ethstack questions related to v, r, s and things like 'ecrecover' to try and understand what I am supposed to input, but alas to no avail. Any ideas of what I am supposed to use here for the parameters?
Thank you,
PostTraumaticDesk
abi.encodePacked(sender)
is the message to be signed, but the developers are the ones that should document the desired behavior. Also the developers should be made aware thatecrecover
has well documented malleability problems.