aboutsummaryrefslogtreecommitdiffstats
path: root/common/compiler/solidity.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 19:16:49 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-12 19:16:49 +0800
commitd82caa5ce38705d2dcdc2ba15c93df9325504e34 (patch)
tree0d43d34439f5035e500c49e5a2a504286b3a5e73 /common/compiler/solidity.go
parente8d701a3b2151d493228e3a484dca2c461f68370 (diff)
parent03bf902b9280aea91eea087f23a4c7aa1f8638c1 (diff)
downloadgo-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar.gz
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar.bz2
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar.lz
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar.xz
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.tar.zst
go-tangerine-d82caa5ce38705d2dcdc2ba15c93df9325504e34.zip
Merge pull request #899 from ethersphere/solc-test-fix
compiler, cli/js: fix solidity compiler tests
Diffstat (limited to 'common/compiler/solidity.go')
-rw-r--r--common/compiler/solidity.go4
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 {