Skip to content

Comment on Sei pays out $2M bug bounty

Comments

  "
  Cosmos uses go panics for error handling. Transaction runs 
  out of gas? panic. Try to spend more coins than you have? 
  panic. Invalid inputs? panic.

  ...

  For safety, later on the panic was removed entirely.
  "
Next time someone suggests using panic's as exceptions in golang... I'm going to point them at a nice $75k reason not to do that.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.