compiler, cli/js: fix solidity compiler tests failing when a different version of solc installed

This commit is contained in:
zelig
2015-05-10 13:46:38 +02:00
parent 76215ca9f3
commit 03bf902b92
4 changed files with 21 additions and 6 deletions

View File

@ -88,6 +88,10 @@ func (sol *Solidity) Info() string {
return fmt.Sprintf("solc v%s\nSolidity Compiler: %s\n%s", sol.version, sol.solcPath, flair)
}
func (sol *Solidity) Version() string {
return sol.version
}
func (sol *Solidity) Compile(source string) (contract *Contract, err error) {
if len(source) == 0 {