diff options
author | zelig <viktor.tron@gmail.com> | 2015-05-10 19:46:38 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-05-12 18:36:54 +0800 |
commit | 03bf902b9280aea91eea087f23a4c7aa1f8638c1 (patch) | |
tree | a2ef69557d3d2d5627b2082d376e361ead01b475 /common/compiler/solidity.go | |
parent | 76215ca9f3c22b97d81b492026691a692cc2ce1a (diff) | |
download | go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar.gz go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar.bz2 go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar.lz go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar.xz go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.tar.zst go-tangerine-03bf902b9280aea91eea087f23a4c7aa1f8638c1.zip |
compiler, cli/js: fix solidity compiler tests failing when a different version of solc installed
Diffstat (limited to 'common/compiler/solidity.go')
-rw-r--r-- | common/compiler/solidity.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |