[#324] Close nns resolver after use #327
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ func ResolveContractHash(contractHash, rpcAddress string) (util.Uint160, error)
|
|||
if err := nns.Dial(rpcAddress); err != nil {
|
||||
return util.Uint160{}, fmt.Errorf("dial nns %s: %w", rpcAddress, err)
|
||||
}
|
||||
defer nns.Close()
|
||||
|
||||
return nns.ResolveContractHash(domain)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue