From cad5710590906b654f995473b49175baaa3fb234 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 2 May 2018 10:39:08 -0500 Subject: [PATCH 1/2] sharding: fix return type of NewClient in client.go to return interface Former-commit-id: c00c1905d427948185c354651ba223d445ffd801 [formerly 89f4058a8774ac7a996f7f28e1c0f973dd92ef84] Former-commit-id: 1e54ceb3fd9e47864779b4ea132382f0a15aa3eb --- sharding/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharding/client/client.go b/sharding/client/client.go index e9c6824df..5523dd614 100644 --- a/sharding/client/client.go +++ b/sharding/client/client.go @@ -55,7 +55,7 @@ type Client interface { } // NewClient forms a new struct instance -func NewClient(ctx *cli.Context) *shardingClient { +func NewClient(ctx *cli.Context) Client { path := node.DefaultDataDir() if ctx.GlobalIsSet(utils.DataDirFlag.Name) { path = ctx.GlobalString(utils.DataDirFlag.Name) From 9a259f7f48f9f7881b213fbdc871516104149b6e Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 2 May 2018 11:39:07 -0500 Subject: [PATCH 2/2] sharding: added missing comment Former-commit-id: 4b3a87bae0997905cf7ef4085094356bb8c53c1f [formerly d0eafdcffbdc0fa18af281dadb13b8a7745b5f72] Former-commit-id: 6a7e0a5328eecbdbbd61005a3b73ab297e5fa2f0 --- sharding/client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sharding/client/client.go b/sharding/client/client.go index 5523dd614..eb584feba 100644 --- a/sharding/client/client.go +++ b/sharding/client/client.go @@ -185,6 +185,7 @@ func (c *shardingClient) SMCCaller() *contracts.SMCCaller { return &c.smc.SMCCaller } +// SMCTransactor allows us to send tx's to the SMC programmatically func (c *shardingClient) SMCTransactor() *contracts.SMCTransactor { return &c.smc.SMCTransactor }