Skip to content

Commit 82ccf53

Browse files
author
Sean
committed
remove some unused methods
1 parent cbdfdfe commit 82ccf53

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pkg/internal/common/evm.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package common
22

33
import (
44
"context"
5-
"encoding/hex"
65
"errors"
7-
"fmt"
86
"math/big"
97
"regexp"
108
"strconv"
@@ -101,20 +99,13 @@ func IsWallet(addr string) bool {
10199
return false
102100
}
103101
isContract := len(bytecode) > 0
104-
if isContract {
105-
fmt.Printf("\nBYTECODE = %+v", hex.EncodeToString(bytecode))
106-
}
107102
return !isContract
108103
}
109104

110105
func IsContract(addr string) bool {
111106
return !IsWallet(addr)
112107
}
113108

114-
func IsAnything(addr string) bool {
115-
return IsWallet(addr) || IsContract(addr)
116-
}
117-
118109
func validChecksum(addr string) bool {
119110
valid := SanitizeChecksum(addr)
120111
return addr == valid

0 commit comments

Comments
 (0)