Skip to content

Commit

Permalink
example/erc20: fix stack comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Sep 13, 2023
1 parent 4dff62f commit 0f14891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/erc20/op_allowance.eas
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
;;;
;;; calldata structure
;;; +--------------------+------------------+------------------+------------------+--------------------+
;;; | selector (4 bytes) | zeros (12 bytes) | owner (20 bytes) | zeros (20 bytes) | spender (20 bytes) |
;;; | selector (4 bytes) | zeros (12 bytes) | owner (20 bytes) | zeros (12 bytes) | spender (20 bytes) |
;;; +--------------------+------------------+------------------+------------------+--------------------+

#define S_allowance .selector("allowance(address,address)")

Allowance:
push 64 ; [len]
push 4 ; [offset]
push 4 ; [offset, len]
keccak256 ; [key]

sload ; [allowance]
Expand Down

0 comments on commit 0f14891

Please sign in to comment.