shafu0x / evm-from-scratch-book

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

fix in 07_environment.html #15

Closed itfat closed 4 weeks ago

itfat commented 1 month ago

In the function balance

def balance(evm):
    address = cpu.stack.pop()
    evm.stack.push(99999999999)

    evm.pc += 1
    evm.gas_dec(2600) # 100 if warm

Updated the address to evm.stack.pop(). Same is the case with calldatacopy mentioned in #14

netlify[bot] commented 1 month ago

Deploy Preview for evm-from-scratch ready!

Name Link
Latest commit 419b58fbefa337cf625deec80ab76579e6b715c8
Latest deploy log https://app.netlify.com/sites/evm-from-scratch/deploys/6697881f22f75600080007a9
Deploy Preview https://deploy-preview-15--evm-from-scratch.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

shafu0x commented 4 weeks ago

thanks