Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code typos on page /content/07a_opcodes/07_environment.html #14

Open
itfat opened this issue Jul 17, 2024 · 1 comment
Open

Code typos on page /content/07a_opcodes/07_environment.html #14

itfat opened this issue Jul 17, 2024 · 1 comment

Comments

@itfat
Copy link
Contributor

itfat commented Jul 17, 2024

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

The address should be evm.stack.pop().
Same is the case with calldatacopy.

@shafu0x
Copy link
Owner

shafu0x commented Jul 17, 2024

yeah could you PR it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants