shafu0x / evm-from-scratch-book

The EVM from scratch book
https://evm-from-scratch.xyz
70 stars 14 forks source link

Code typos on `content/07a_opcodes /09_memory.ipynb` #21

Open 0x6980 opened 3 weeks ago

0x6980 commented 3 weeks ago

In the function mstore(evm)

def mstore(evm): 
    # TODO: should be right aligned
    offset, value = evm.stack.pop(), cpu.stack.pop()
    evm.memory.store(offset, value)
    evm.pc += 1

cpu.stack.pop() should be evm.stack.pop()