Skip to content

Commit

Permalink
Fix FullTracer::getFromMemory() result length
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Aug 22, 2023
1 parent 873bd28 commit 0e140d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main_sm/fork_5/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ inline zkresult getFromMemory(Context &ctx, mpz_class &offset, mpz_class &length
result += hexStringEnd.substr(0, bytesToRetrieve * 2);
}

result = result.substr(0, length.get_ui()*2);

return ZKR_SUCCESS;
}

Expand Down

0 comments on commit 0e140d2

Please sign in to comment.