Browse Source

Remove spurious flippage

pull/43/merge
Jae Kwon 10 years ago
parent
commit
f234d0aafb
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      vm/vm.go

+ 1
- 3
vm/vm.go View File

@ -495,13 +495,11 @@ func (vm *VM) call(caller, callee *Account, code, input []byte, value uint64, ga
case SLOAD: // 0x54
loc := stack.Pop()
data := vm.appState.GetStorage(callee.Address, loc)
stack.Push(flipWord(data))
stack.Push(data)
dbg.Printf(" {0x%X : 0x%X}\n", loc, data)
case SSTORE: // 0x55
loc, data := stack.Pop(), stack.Pop()
loc = flipWord(loc)
data = flipWord(data)
vm.appState.SetStorage(callee.Address, loc, data)
useGas(gas, GasStorageUpdate)
dbg.Printf(" {0x%X : 0x%X}\n", loc, data)


Loading…
Cancel
Save