[#140] sdk: Refactor version type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
524280a5e8
commit
e0c34a51f2
7 changed files with 102 additions and 32 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue