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
|
@ -19,12 +19,12 @@ func (x *ClientWrapper) ManageKeys(scriptHash []byte, ks [][]byte, bind bool) er
|
|||
if bind {
|
||||
a = new(neofscontract.BindKeysArgs)
|
||||
call = func(a args) error {
|
||||
return (*neofscontract.Client)(x).BindKeys(*a.(*neofscontract.BindKeysArgs))
|
||||
return x.client.BindKeys(*a.(*neofscontract.BindKeysArgs))
|
||||
}
|
||||
} else {
|
||||
a = new(neofscontract.UnbindKeysArgs)
|
||||
call = func(a args) error {
|
||||
return (*neofscontract.Client)(x).UnbindKeys(*a.(*neofscontract.UnbindKeysArgs))
|
||||
return x.client.UnbindKeys(*a.(*neofscontract.UnbindKeysArgs))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue