Closed acuarica closed 5 months ago
Vyper uses ~XOR to compile function selectors[1]. This means that the fallthrough branch is the branch of the function. Thus
~XOR
Sig
Shanghai
JUMPI
Moreover, it also add a Vyper example.
[1] https://github.com/vyperlang/vyper/issues/1603#issuecomment-529238275
Vyper uses
~XOR
to compile function selectors[1]. This means that the fallthrough branch is the branch of the function. ThusSig
to signal the function branch is the negative branchShanghai
fork to include Vyper's function selector with~XOR
JUMPI
to use either a positive or negativeSig
branchMoreover, it also add a Vyper example.
[1] https://github.com/vyperlang/vyper/issues/1603#issuecomment-529238275