From b0c6a76bee23eb6dec41394d2b679b205cbc15ea Mon Sep 17 00:00:00 2001 From: Chris Pacia Date: Tue, 23 May 2017 01:20:41 -0400 Subject: [PATCH] Add RawClient method --- mobile/ethclient.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/ethclient.go b/mobile/ethclient.go index 4e83285017..80e33688ae 100644 --- a/mobile/ethclient.go +++ b/mobile/ethclient.go @@ -36,6 +36,11 @@ func NewEthereumClient(rawurl string) (client *EthereumClient, _ error) { return &EthereumClient{rawClient}, err } +// Get the raw ethclient.Client +func (ec *EthereumClient) RawClient() *ethclient.Client { + return ec.client +} + // GetBlockByHash returns the given full block. func (ec *EthereumClient) GetBlockByHash(ctx *Context, hash *Hash) (block *Block, _ error) { rawBlock, err := ec.client.BlockByHash(ctx.context, hash.hash)