scroll-tech / go-ethereum

Scroll's fork of the official Go implementation of the Ethereum protocol
GNU Lesser General Public License v3.0
470 stars 271 forks source link

Update version.go #989

Closed Mzemlu closed 3 weeks ago

Mzemlu commented 1 month ago

This code has been improved in the following aspects:

  1. Global variables were avoided, making the code more secure and predictable.
  2. Potential errors in the code were handled.
  3. Code readability was enhanced, making it easier for others to understand.
  4. Functions are now easier to test individually.
HAOYUatHZ commented 3 weeks ago

we lean to follow the style in https://github.com/ethereum/go-ethereum