Skip to content

Commit

Permalink
Merge pull request #38 from ipsilon/fix-dataload-price
Browse files Browse the repository at this point in the history
Fix DATALOAD/DATALOADN prices
  • Loading branch information
gumb0 authored Jan 11, 2024
2 parents 0f9a80b + 11d4f82 commit 5d50202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ Code executing within an EOF environment will behave differently than legacy cod
- instruction exceptionally aborts if after the appending, data section size would overflow the maximum data section size or underflow (i.e. be less than data section size declared in the header)
- instruction exceptionally aborts if invoked not in "initcode-mode"
- `DATALOAD (0xe8)` instruction
- deduct 3 gas
- deduct 4 gas
- pop one value, `offset`, from the stack
- read `[offset, offset+32]` from the data section of the active container and push the value to the stack
- pad with 0s if reading out of data bounds
- `DATALOADN (0xe9)` instruction
- deduct 2 gas
- deduct 3 gas
- like `DATALOAD`, but takes the offset as a 16-bit immediate value and not from the stack
- `DATASIZE (0xea)` instruction
- deduct 2 gas
Expand Down

0 comments on commit 5d50202

Please sign in to comment.