[#324] Close nns resolver after use
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
8050ca2d51
commit
70043c4800
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