Merge pull request #898 from embark-framework/bugfix/fix-contract-matching
Fix contract matching
This commit is contained in:
commit
13ab52125a
|
@ -294,7 +294,7 @@ class ContractSource {
|
||||||
// Try to match the contract to the bytecode. If it doesn't,
|
// Try to match the contract to the bytecode. If it doesn't,
|
||||||
// then we bail.
|
// then we bail.
|
||||||
contractMatches = trace.structLogs.every((step) => { return bytecode[step.pc]; });
|
contractMatches = trace.structLogs.every((step) => { return bytecode[step.pc]; });
|
||||||
if(!contractMatches) break;
|
if(!contractMatches) continue;
|
||||||
|
|
||||||
trace.structLogs.forEach((step) => {
|
trace.structLogs.forEach((step) => {
|
||||||
step = bytecode[step.pc];
|
step = bytecode[step.pc];
|
||||||
|
|
Loading…
Reference in New Issue