From e6c352dba00899794d055d4ff8c6d6509e730832 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 30 Mar 2015 20:50:56 -0700 Subject: [PATCH] vm: flip sha3 result --- vm/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/vm.go b/vm/vm.go index bc93ed3ea..cbf68729d 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -318,7 +318,7 @@ func (vm *VM) call(caller, callee *Account, code, input []byte, value uint64, ga return nil, firstErr(err, ErrMemoryOutOfBounds) } data = sha3.Sha3(data) - stack.PushBytes(data) + stack.PushBytes(flip(data)) dbg.Printf(" => (%v) %X\n", size, data) case ADDRESS: // 0x30