aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-05-20 11:11:48 +0800
committerzelig <viktor.tron@gmail.com>2015-05-20 11:11:48 +0800
commitb0ae84aa0dae65f00492f981bb61887331def2a5 (patch)
tree369d5c342c6df8b5486c386663806937a4d9def1 /xeth/xeth.go
parentea893aca8fbda0d821424ab7509a0a0cfef1f77d (diff)
downloaddexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.gz
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.bz2
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.lz
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.xz
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.zst
dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.zip
multiple contract source for solidity compiler: returns contract array if multiple contracts. fixes #1023
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r--xeth/xeth.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 81197d381..4925fe635 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -69,6 +69,13 @@ type XEth struct {
agent *miner.RemoteAgent
}
+func NewTest(eth *eth.Ethereum, frontend Frontend) *XEth {
+ return &XEth{
+ backend: eth,
+ frontend: frontend,
+ }
+}
+
// New creates an XEth that uses the given frontend.
// If a nil Frontend is provided, a default frontend which
// confirms all transactions will be used.