diff --git a/remix-lib/src/web3Provider/web3VmProvider.js b/remix-lib/src/web3Provider/web3VmProvider.js index 1f892fae9c..9c00d51547 100644 --- a/remix-lib/src/web3Provider/web3VmProvider.js +++ b/remix-lib/src/web3Provider/web3VmProvider.js @@ -270,7 +270,7 @@ function getSha3Input (stack, memory) { memoryLength = parseInt(memLengthDec) * 2 var i = Math.floor(memoryStart / 32) - var maxIndex = Math.floor(memoryLength / 32) + var maxIndex = Math.floor(memoryLength / 32) + i if (!memory[i]) { return emptyFill(memoryLength) }