From 28cb70ee127b15313d7424ed50a21c8db30131ef Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 19 May 2016 15:38:24 +0200 Subject: [PATCH] rename function --- src/traceManager.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/traceManager.js b/src/traceManager.js index c29c24c7f0..c6c1e287dd 100644 --- a/src/traceManager.js +++ b/src/traceManager.js @@ -58,10 +58,10 @@ module.exports = { for (var k in this.trace) { var step = this.trace[k] - this.calldata(k, step) - this.memory(k, step) - currentStorageAddress = this.storage(k, step, currentStorageAddress) - var depth = this.depth(k, step, currentDepth, callStack) + this.buildCalldata(k, step) + this.buildMemory(k, step) + currentStorageAddress = this.buildStorage(k, step, currentStorageAddress) + var depth = this.buildDepth(k, step, currentDepth, callStack) if (depth) { currentDepth = depth } @@ -69,19 +69,19 @@ module.exports = { }, // compute trace section - calldata: function (index, step) { + buildCalldata: function (index, step) { if (step.calldata) { this.callDataChanges.push(index) } }, - memory: function (index, step) { + buildMemory: function (index, step) { if (step.memory) { this.memoryChanges.push(index) } }, - storage: function (index, step, currentAddress) { + buildStorage: function (index, step, currentAddress) { var change = false if (step.address) { // new context @@ -111,7 +111,7 @@ module.exports = { return currentAddress }, - depth: function (index, step, currentDepth, callStack) { + buildDepth: function (index, step, currentDepth, callStack) { if (step.depth === undefined) return if (step.depth > currentDepth) { if (index === 0) {