rpc: Fix EthSubscribe

Signed-off-by: Lewis Marshall <lewis@lmars.net>
This commit is contained in:
Lewis Marshall 2017-06-14 11:08:45 +02:00
parent b3557cd6e1
commit 71fb11d6a0

View file

@ -359,7 +359,7 @@ func (c *Client) BatchCallContext(ctx context.Context, b []BatchElem) error {
// EthSubscribe registers a subscripion under the "eth" namespace. // EthSubscribe registers a subscripion under the "eth" namespace.
func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (*ClientSubscription, error) { func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (*ClientSubscription, error) {
return c.Subscribe(ctx, "eth", channel, args) return c.Subscribe(ctx, "eth", channel, args...)
} }
// Subscribe calls the "<namespace>_subscribe" method with the given arguments, // Subscribe calls the "<namespace>_subscribe" method with the given arguments,