Skip to content

Commit

Permalink
Consider offset in MSTORE8
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Dec 17, 2019
1 parent bcfcd38 commit 6ad200f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assembly/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function interpret(code: Uint8Array): u8 {

// TODO: Consider whole offset, not only last byte
let offsetU8: u8 = offset[31]
store<u8>(memoryPtr, val[31], 0)
store<u8>(memoryPtr + offsetU8, val[31], 0)

stackTop -= 2
break
Expand Down

0 comments on commit 6ad200f

Please sign in to comment.