mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
4c6dca876c
There are use-cases when not only Actor, but also Invoker and even simple RPC client must wait (e.g. sendtx or dumptx CLI commands). Actor requires optional signers in constructor, and it's not always appropriate to create Actor only to be able to use Waiter, sometimes it's needed to use only Waiter without Actor. Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
13 lines
275 B
Go
13 lines
275 B
Go
package actor_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/rpcclient"
|
|
"github.com/nspcc-dev/neo-go/pkg/rpcclient/actor"
|
|
)
|
|
|
|
func TestRPCActorRPCClientCompat(t *testing.T) {
|
|
_ = actor.RPCActor(&rpcclient.WSClient{})
|
|
_ = actor.RPCActor(&rpcclient.Client{})
|
|
}
|