Commit 619563a2 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #193 from ethereum/creationcoderetrieval

Fix src map retrieval for creation code
parents a29aba71 82bc839c
......@@ -67,7 +67,7 @@ function getSourceMap (address, code, contracts) {
var isCreation = helper.isContractCreation(address)
var byteProp = isCreation ? 'bytecode' : 'runtimeBytecode'
for (var k in contracts) {
if ('0x' + contracts[k][byteProp] === code) {
if (code.indexOf('0x' + contracts[k][byteProp]) === 0) {
return isCreation ? contracts[k].srcmap : srcmapRuntime(contracts[k])
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment