Merge pull request #898 from embark-framework/bugfix/fix-contract-matching

Fix contract matching
This commit is contained in:
Iuri Matias 2018-09-23 18:43:16 -04:00 committed by GitHub
commit 13ab52125a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ class ContractSource {
// Try to match the contract to the bytecode. If it doesn't,
// then we bail.
contractMatches = trace.structLogs.every((step) => { return bytecode[step.pc]; });
if(!contractMatches) break;
if(!contractMatches) continue;
trace.structLogs.forEach((step) => {
step = bytecode[step.pc];