interop: drop deprecated util.FromAddress
It still was used in a number of places, surprisingly.
This commit is contained in:
parent
7306beca4d
commit
4671fbb3be
15 changed files with 42 additions and 113 deletions
|
@ -89,10 +89,10 @@ func TestNotAssignedFunctionCall(t *testing.T) {
|
|||
})
|
||||
t.Run("Builtin", func(t *testing.T) {
|
||||
src := `package foo
|
||||
import "github.com/nspcc-dev/neo-go/pkg/interop/util"
|
||||
import "github.com/nspcc-dev/neo-go/pkg/interop/lib/address"
|
||||
func Main() int {
|
||||
util.FromAddress("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8")
|
||||
util.FromAddress("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8")
|
||||
address.ToHash160("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8")
|
||||
address.ToHash160("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8")
|
||||
return 1
|
||||
}`
|
||||
eval(t, src, big.NewInt(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue