Skip to content

Commit

Permalink
dropped Keccak
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Jul 16, 2023
1 parent 76e7a11 commit d338ccd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"strings"

"github.com/ethereum/go-ethereum/common"
"github.com/lmittmann/w3/internal/crypto"
)

// Common [big.Int]'s.
Expand Down Expand Up @@ -179,13 +178,6 @@ func parseDecimal(strBig string) *big.Int {
return integer.Add(integer, fraction)
}

// Keccak returns the Keccak256 hash of data. It is short for crypto.Keccak256Hash(…)
//
// Deprecated: Use [crypto.Keccak256Hash] instead.
func Keccak(data []byte) common.Hash {
return crypto.Keccak256Hash(data)
}

// FromWei returns the given Wei as decimal with the given number of decimals.
func FromWei(wei *big.Int, decimals uint8) string {
if wei == nil {
Expand Down

0 comments on commit d338ccd

Please sign in to comment.