diff options
author | zelig <viktor.tron@gmail.com> | 2015-05-20 11:11:48 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-05-20 11:11:48 +0800 |
commit | b0ae84aa0dae65f00492f981bb61887331def2a5 (patch) | |
tree | 369d5c342c6df8b5486c386663806937a4d9def1 /xeth | |
parent | ea893aca8fbda0d821424ab7509a0a0cfef1f77d (diff) | |
download | go-tangerine-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.gz go-tangerine-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.zst go-tangerine-b0ae84aa0dae65f00492f981bb61887331def2a5.zip |
multiple contract source for solidity compiler: returns contract array if multiple contracts. fixes #1023
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 7 |
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. |