aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-05-20 09:04:52 +0800
committerzelig <viktor.tron@gmail.com>2015-05-20 09:47:13 +0800
commit22b694ee1e1044e68c906fbd864797ac2f8a4ab0 (patch)
tree498477c69b6715c41a0c5e8c6ddfe20f06ca5e93 /xeth
parentf9abcee0f9185d41c71cc24af1303133497ebeb0 (diff)
downloaddexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar.gz
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar.bz2
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar.lz
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar.xz
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.tar.zst
dexon-22b694ee1e1044e68c906fbd864797ac2f8a4ab0.zip
solc now in ethereum, fixes solc path setting; setSolc() didnt work
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 7de3e31be..81197d381 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -66,9 +66,6 @@ type XEth struct {
// regmut sync.Mutex
// register map[string][]*interface{} // TODO improve return type
- solcPath string
- solc *compiler.Solidity
-
agent *miner.RemoteAgent
}
@@ -379,17 +376,12 @@ func (self *XEth) Accounts() []string {
// accessor for solidity compiler.
// memoized if available, retried on-demand if not
func (self *XEth) Solc() (*compiler.Solidity, error) {
- var err error
- if self.solc == nil {
- self.solc, err = compiler.New(self.solcPath)
- }
- return self.solc, err
+ return self.backend.Solc()
}
// set in js console via admin interface or wrapper from cli flags
func (self *XEth) SetSolc(solcPath string) (*compiler.Solidity, error) {
- self.solcPath = solcPath
- self.solc = nil
+ self.backend.SetSolc(solcPath)
return self.Solc()
}