Skip to content

Commit

Permalink
Update logic for checking for constantinople in opFns.js to handle mu…
Browse files Browse the repository at this point in the history
…ltiple supported forks
  • Loading branch information
danjm committed Feb 6, 2019
1 parent 1b31ead commit ceb1787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vm/opFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -1082,15 +1082,15 @@ function isCreateOpCode (opName) {
}

function getContractStorage (runState, address, key, cb) {
if (runState._common.activeHardfork() === 'constantinople') {
if (runState._common.hardfork() === 'constantinople') {
runState.storageReader.getContractStorage(address, key, cb)
} else {
runState.stateManager.getContractStorage(address, key, cb)
}
}

function updateSstoreGas (runState, found, value) {
if (runState._common.activeHardfork() === 'constantinople') {
if (runState._common.hardfork() === 'constantinople') {
var original = found.original
var current = found.current
if (current.equals(value)) {
Expand Down

0 comments on commit ceb1787

Please sign in to comment.