Hello guys sorry to barge in. How would guys implement a confirmation function? And by confirmation I mean that the user presses confirm, a contract function is called and a boolean value is changed to "true" then i do something else
Jun 15, 2021, 12:27 PM
function confirmation() public {
require(!flag);
flag = true;
// do something else
}
require(!flag);
flag = true;
// do something else
}
It's almost exactly what you wrote in English.
Right, that's the practical side of the issue, but theoretically, it is a feasible approach, no?
Jun 15, 2021, 12:31 PM
Feasible and appreciated as well. Don't know if you might have noticed, but almost all of the 'exploit' transactions have a very high gas limit
Jun 15, 2021, 12:43 PM
thanks my dude, so it is the straighforward approach no funky patterns to respect when doing this
Jun 15, 2021, 12:49 PM
It sounds quite straightforward.
Right, sometimes, it feels OK to put a very high gas limit and in some other moments, it does not feel right.
Jun 15, 2021, 12:54 PM
Haha same here man. When I see transactions with 30k gwei fee, I'm like 'Im rishh bitch, here take my money'😆
Jun 15, 2021, 12:58 PM
yeah people complain about 10$ fee on ETH but pay 100$ fee on bsc cause they just can :D
Jun 15, 2021, 1:06 PM