forked from TrueCloudLab/frostfs-node
[#627] morph: Inherit internal.StaticClient interface in all wrappers
There is a need to provide contract address getter from all contract client wrappers. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1860f5040c
commit
d6c0307431
14 changed files with 79 additions and 30 deletions
|
@ -53,7 +53,7 @@ func (w *ClientWrapper) Get(v GetArgs) (*GetResult, error) {
|
|||
args.SetEpoch(v.epoch)
|
||||
args.SetPeerID(v.peerID.ToV2().GetPublicKey())
|
||||
|
||||
data, err := (*reputationClient.Client)(w).Get(args)
|
||||
data, err := w.client.Get(args)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ func (w *ClientWrapper) GetByID(v GetByIDArgs) (*GetResult, error) {
|
|||
args := reputationClient.GetByIDArgs{}
|
||||
args.SetID(v.id)
|
||||
|
||||
data, err := (*reputationClient.Client)(w).GetByID(args)
|
||||
data, err := w.client.GetByID(args)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue