forked from TrueCloudLab/frostfs-node
[#851] ape: Initialize and use policy contract interface
* Replace inmemory policy contract mock by initialized policy contract interface. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
61da7dca24
commit
7d7cf05575
7 changed files with 22 additions and 7 deletions
|
@ -539,3 +539,10 @@ func (c *Client) setActor(act *actor.Actor) {
|
|||
c.gasToken = nep17.New(act, gas.Hash)
|
||||
c.rolemgmt = rolemgmt.New(act)
|
||||
}
|
||||
|
||||
func (c *Client) GetActor() *actor.Actor {
|
||||
c.switchLock.RLock()
|
||||
defer c.switchLock.RUnlock()
|
||||
|
||||
return c.rpcActor
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue