rpc: adjust client documentation

This commit is contained in:
Anna Shaleva 2021-09-08 13:02:14 +03:00
parent 913e3878c5
commit df8141ff7d
4 changed files with 25 additions and 9 deletions

View file

@ -110,9 +110,10 @@ func New(ctx context.Context, endpoint string, opts Options) (*Client, error) {
return cl, nil
}
// Init sets magic of the network client connected to and native NEO and GAS
// contracts scripthashes. This method should be called before any transaction-,
// header- or block-related requests in order to deserialize responses properly.
// Init sets magic of the network client connected to, stateRootInHeader option
// and native NEO, GAS and Policy contracts scripthashes. This method should be
// called before any transaction-, header- or block-related requests in order to
// deserialize responses properly.
func (c *Client) Init() error {
version, err := c.GetVersion()
if err != nil {