[#746] morph/client: Don't cache GAS contract address on NeoFS-side
Caching is performed inside `GetNativeContractHash` method of neo-go client, so the additional cache level is redundant. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0502abc3e0
commit
81722c373b
4 changed files with 20 additions and 13 deletions
|
@ -3,7 +3,6 @@ package client
|
|||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/native/nativenames"
|
||||
"github.com/nspcc-dev/neo-go/pkg/rpc/client"
|
||||
"github.com/nspcc-dev/neo-go/pkg/wallet"
|
||||
"go.uber.org/zap"
|
||||
|
@ -37,17 +36,11 @@ func (x *multiClient) createForAddress(addr string) (*Client, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
gas, err := cli.GetNativeContractHash(nativenames.Gas)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
c := &Client{
|
||||
singleClient: &singleClient{
|
||||
logger: x.cfg.logger,
|
||||
client: cli,
|
||||
acc: x.account,
|
||||
gas: gas,
|
||||
waitInterval: x.cfg.waitInterval,
|
||||
signer: x.cfg.signer,
|
||||
notary: x.sharedNotary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue