[#140] sdk: Refactor version type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-10 14:29:11 +03:00 committed by Stanislav Bogatyrev
parent 524280a5e8
commit e0c34a51f2
7 changed files with 102 additions and 32 deletions

View file

@ -18,7 +18,7 @@ type (
TransportProtocol uint32
TransportInfo struct {
Version pkg.Version
Version *pkg.Version
Protocol TransportProtocol
}
)
@ -42,7 +42,7 @@ func New(key *ecdsa.PrivateKey, opts ...ClientOption) (*Client, error) {
return &Client{
key: key,
remoteNode: TransportInfo{
Version: pkg.SDKVersion,
Version: pkg.SDKVersion(),
Protocol: GRPC,
},
opts: clientOptions,