forked from TrueCloudLab/frostfs-node
[#584] pkg/innerring: Stop using deprecated methods
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
91f010e0a9
commit
057ebf9d51
11 changed files with 65 additions and 44 deletions
|
@ -18,6 +18,8 @@ type TransferPrm struct {
|
|||
|
||||
// TransferX transfers p.Amount of GASe-12 from p.From to p.To
|
||||
// with details p.Details through direct smart contract call.
|
||||
//
|
||||
// If TryNotary is provided, calls notary contract.
|
||||
func (w *Wrapper) TransferX(p TransferPrm) error {
|
||||
return w.transferX(false, p)
|
||||
}
|
||||
|
@ -46,11 +48,5 @@ func (w *Wrapper) transferX(notary bool, p TransferPrm) error {
|
|||
args.SetAmount(p.Amount)
|
||||
args.SetDetails(p.Details)
|
||||
|
||||
// invoke smart contract call
|
||||
f := w.client.TransferX
|
||||
if notary {
|
||||
f = w.client.TransferXNotary
|
||||
}
|
||||
|
||||
return f(args)
|
||||
return w.client.TransferX(args)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue