From 03bf902b9280aea91eea087f23a4c7aa1f8638c1 Mon Sep 17 00:00:00 2001 From: zelig Date: Sun, 10 May 2015 13:46:38 +0200 Subject: compiler, cli/js: fix solidity compiler tests failing when a different version of solc installed --- common/compiler/solidity.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/compiler/solidity.go') diff --git a/common/compiler/solidity.go b/common/compiler/solidity.go index 36d0e96cc..3462436b7 100644 --- a/common/compiler/solidity.go +++ b/common/compiler/solidity.go @@ -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 { -- cgit v1.2.3