We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbdfdfe commit 82ccf53Copy full SHA for 82ccf53
pkg/internal/common/evm.go
@@ -2,9 +2,7 @@ package common
2
3
import (
4
"context"
5
- "encoding/hex"
6
"errors"
7
- "fmt"
8
"math/big"
9
"regexp"
10
"strconv"
@@ -101,20 +99,13 @@ func IsWallet(addr string) bool {
101
99
return false
102
100
}
103
isContract := len(bytecode) > 0
104
- if isContract {
105
- fmt.Printf("\nBYTECODE = %+v", hex.EncodeToString(bytecode))
106
- }
107
return !isContract
108
109
110
func IsContract(addr string) bool {
111
return !IsWallet(addr)
112
113
114
-func IsAnything(addr string) bool {
115
- return IsWallet(addr) || IsContract(addr)
116
-}
117
-
118
func validChecksum(addr string) bool {
119
valid := SanitizeChecksum(addr)
120
return addr == valid
0 commit comments