aboutsummaryrefslogtreecommitdiffstats
path: root/common/compiler/solidity.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/compiler/solidity.go')
-rw-r--r--common/compiler/solidity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/compiler/solidity.go b/common/compiler/solidity.go
index 6790f9a1d..bc1697692 100644
--- a/common/compiler/solidity.go
+++ b/common/compiler/solidity.go
@@ -164,7 +164,7 @@ func (sol *Solidity) Compile(source string) (contract *Contract, err error) {
err = json.Unmarshal(developerDocJson, &developerDoc)
contract = &Contract{
- Code: string(code),
+ Code: "0x" + string(code),
Info: ContractInfo{
Source: source,
Language: "Solidity",