Skip to content

Commit ceb1787

Browse files
committed
Update logic for checking for constantinople in opFns.js to handle multiple supported forks
1 parent 1b31ead commit ceb1787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vm/opFns.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1082,15 +1082,15 @@ function isCreateOpCode (opName) {
10821082
}
10831083

10841084
function getContractStorage (runState, address, key, cb) {
1085-
if (runState._common.activeHardfork() === 'constantinople') {
1085+
if (runState._common.hardfork() === 'constantinople') {
10861086
runState.storageReader.getContractStorage(address, key, cb)
10871087
} else {
10881088
runState.stateManager.getContractStorage(address, key, cb)
10891089
}
10901090
}
10911091

10921092
function updateSstoreGas (runState, found, value) {
1093-
if (runState._common.activeHardfork() === 'constantinople') {
1093+
if (runState._common.hardfork() === 'constantinople') {
10941094
var original = found.original
10951095
var current = found.current
10961096
if (current.equals(value)) {

0 commit comments

Comments
 (0)