Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract call and contract creation refactor #252

Merged
merged 12 commits into from
Feb 27, 2019
Prev Previous commit
Next Next commit
add comment to transaction tracer
  • Loading branch information
jangko committed Feb 27, 2019
commit 1954b745c59e93c1bb2e2a3d8743d1c1b1a69a56
3 changes: 3 additions & 0 deletions nimbus/vm/transaction_tracer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ proc initTracer*(tracer: var TransactionTracer, flags: set[TracerFlags] = {}) =
tracer.storageKeys = @[]

proc prepare*(tracer: var TransactionTracer, compDepth: int) =
# this uncommon arragement is intentional
# compDepth will be varying up and down: 1,2,3,4,3,3,2,2,1
# see issue #245 and PR #247 discussion
if compDepth >= tracer.storageKeys.len:
let prevLen = tracer.storageKeys.len
tracer.storageKeys.setLen(compDepth + 1)
Expand Down