diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2016-01-14 02:35:48 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-11-09 09:12:53 +0800 |
commit | 7db7109a5b53c339f00e9c05ac826b3dbd1f98e1 (patch) | |
tree | c447d9816c4490e71cb2a8d2420d82f938d8757a /eth/bind.go | |
parent | 9f8d192991c4f68fa14c91366722bbca601da117 (diff) | |
download | dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar.gz dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar.bz2 dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar.lz dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar.xz dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.tar.zst dexon-7db7109a5b53c339f00e9c05ac826b3dbd1f98e1.zip |
cmd, eth: added light client and light server modes
Diffstat (limited to 'eth/bind.go')
-rw-r--r-- | eth/bind.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/bind.go b/eth/bind.go index 532e94460..0931c5f3b 100644 --- a/eth/bind.go +++ b/eth/bind.go @@ -43,11 +43,11 @@ type ContractBackend struct { // NewContractBackend creates a new native contract backend using an existing // Etheruem object. -func NewContractBackend(eth *Ethereum) *ContractBackend { +func NewContractBackend(apiBackend ethapi.Backend) *ContractBackend { return &ContractBackend{ - eapi: ethapi.NewPublicEthereumAPI(eth.apiBackend), - bcapi: ethapi.NewPublicBlockChainAPI(eth.apiBackend), - txapi: ethapi.NewPublicTransactionPoolAPI(eth.apiBackend), + eapi: ethapi.NewPublicEthereumAPI(apiBackend), + bcapi: ethapi.NewPublicBlockChainAPI(apiBackend), + txapi: ethapi.NewPublicTransactionPoolAPI(apiBackend), } } |