mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-21 15:29:27 +00:00
contracts/ens: change contract interface
This commit is contained in:
parent
49d815703f
commit
0a4176dcb5
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ func (ens *ENS) Resolve(name string) (common.Hash, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.Hash{}, err
|
return common.Hash{}, err
|
||||||
}
|
}
|
||||||
ret, err := resolver.Content(node)
|
ret, err := resolver.Contenthash(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.Hash{}, err
|
return common.Hash{}, err
|
||||||
}
|
}
|
||||||
|
|
@ -191,5 +191,5 @@ func (ens *ENS) SetContentHash(name string, hash common.Hash) (*types.Transactio
|
||||||
}
|
}
|
||||||
opts := ens.TransactOpts
|
opts := ens.TransactOpts
|
||||||
opts.GasLimit = 200000
|
opts.GasLimit = 200000
|
||||||
return resolver.Contract.SetContent(&opts, node, hash)
|
return resolver.Contract.SetContenthash(&opts, node, hash)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue