Skip to content

Commit

Permalink
size() is now called elem_size()
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofPetig authored and lukewagner committed Sep 19, 2024
1 parent 3ed572f commit c5f8f25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion design/mvp/CanonicalABI.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def elem_size(t):

def elem_size_list(elem_type, maybe_length):
if maybe_length is not None:
return maybe_length * size(elem_type)
return maybe_length * elem_size(elem_type)
return 8

def elem_size_record(fields):
Expand Down
2 changes: 1 addition & 1 deletion design/mvp/canonical-abi/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def elem_size(t):

def elem_size_list(elem_type, maybe_length):
if maybe_length is not None:
return maybe_length * size(elem_type)
return maybe_length * elem_size(elem_type)
return 8

def elem_size_record(fields):
Expand Down

0 comments on commit c5f8f25

Please sign in to comment.