Skip to main content
Share Your Experience: Take the 2024 Developer Survey
2 votes
Accepted

Slither: .. uses dangerous strict equality

That makes me wonder, is it possible to have this contract receive currency while this triggerReturnAll() function is being executed? I assume it is not possible, as I would expect the incoming ...
Ismael's user avatar
  • 30.5k
1 vote

"message":"execution reverted: arithmetic underflow or overflow"

With only this piece of code and without more details it's hard to say. What function did you call? with what arguments ? An overflow or underflow happens when a calculation result is either less or ...
Torof's user avatar
  • 780
1 vote

Is it possible to recover non-reserve tokens accidentally sent to a Uniswap V2 Pair contract?

My first question is, could these non-reserve tokens possibly be retrieved with an external contract? No. Uniswap V2 pair contracts do not have ownership or recovery mechanism for random tokens.
Mikko Ohtamaa's user avatar
1 vote
Accepted

Issue swapping with Universal Router smart contract on Base Chain

Approval doesn't work like that for the universal router, you need to approve via permit. Lifting code written in python as easy to port over and swapping the same brett token: # ... # we will swap on ...
Maka's user avatar
  • 1,120
1 vote

Can I Recover a Smart Contract Written On Remix

To bring back a previously deployed instance is only possible if you have deployed on a testnet or mainnet or if the localnet that you were using at that time is still the same and was not cleared.If ...
Torof's user avatar
  • 780
1 vote
Accepted

Want to redirect to react component based on metamask address

Instead of defining and calling your redirectBasedOnAccount function inside useEffect. You need to define it outside its scope, and call the same inside the return of your App.jsx. Also, you need to ...
SYED ASAD KAZMI's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible