Skip to content

Commit

Permalink
added BigMaxUint256 (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
Signed-off-by: Mohammed Sohail <sohailsameja@gmail.com>
  • Loading branch information
2 people authored and kamikazechaser committed Feb 2, 2024
1 parent a2fb87f commit 74749af
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import (

// Common [big.Int]'s.
var (
Big0 = big.NewInt(0)
Big1 = big.NewInt(1)
Big2 = big.NewInt(2)
BigGwei = big.NewInt(1_000000000)
BigEther = big.NewInt(1_000000000_000000000)
Big0 = new(big.Int)
Big1 = big.NewInt(1)
Big2 = big.NewInt(2)
BigGwei = big.NewInt(1_000000000)
BigEther = big.NewInt(1_000000000_000000000)
BigMaxUint256 = new(big.Int).Sub(new(big.Int).Lsh(Big1, 256), Big1)
)

// A returns an address from a hexstring or panics if the hexstring does not
Expand Down

0 comments on commit 74749af

Please sign in to comment.