/gas-demo

toy programs to demonstrate gas improvement after optimizations

Primary LanguageYul

gas-demo

toy programs to demonstrate gas improvement after optimizations

tests

  • GasMeasure: modifier that can be used to log used gas
  • IfDemo: demo about if(A&&B) and if(A){if(B){}}
  • ReturnDemo: demo about explicit return
  • UncheckedDemo: demo about checked and unchecked blocks
  • SimpleGasTest: tests about how much gas can be saved