From b7fea53b4741a4f4d202ae972b5d6ca9bd9c3c85 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Jan 2017 14:21:29 +0100 Subject: [PATCH] rename storageStore/memoryStore --- src/solidity/types/RefType.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/solidity/types/RefType.js b/src/solidity/types/RefType.js index 72d0120d73..c28cda8680 100644 --- a/src/solidity/types/RefType.js +++ b/src/solidity/types/RefType.js @@ -27,9 +27,9 @@ class RefType { } var offset = stack[stack.length - 1 - stackDepth] offset = parseInt(offset, 16) - if (this.storageStore()) { + if (this.isInStorage()) { return this.decodeFromStorage({ offset: 0, slot: offset }, storage) - } else if (this.memoryStore()) { + } else if (this.isInMemory()) { return this.decodeFromMemoryInternal(offset, memory) } else { return { error: '' } @@ -54,7 +54,7 @@ class RefType { * * @return {Bool} - return true if the type is defined in the storage */ - storageStore () { + isInStorage () { return this.location.indexOf('storage') === 0 } @@ -63,7 +63,7 @@ class RefType { * * @return {Bool} - return true if the type is defined in the memory */ - memoryStore () { + isInMemory () { return this.location.indexOf('memory') === 0 } }