Skip to content

Commit

Permalink
fix opt none selector table
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jul 16, 2023
1 parent 6a6ee7f commit a2fbe2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/codegen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _selector_section_sparse(external_functions, global_ctx):
# 2 bytes for bucket location
SZ_BUCKET_HEADER = 2

if n_buckets > 1 or core._opt_none():
if n_buckets > 1 and not core._opt_none():
bucket_id = ["mod", "_calldata_method_id", n_buckets]
bucket_hdr_location = [
"add",
Expand Down

0 comments on commit a2fbe2b

Please sign in to comment.