Skip to content

Commit c5f8f25

Browse files
ChristofPetiglukewagner
authored andcommitted
size() is now called elem_size()
1 parent 3ed572f commit c5f8f25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

design/mvp/CanonicalABI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def elem_size(t):
207207

208208
def elem_size_list(elem_type, maybe_length):
209209
if maybe_length is not None:
210-
return maybe_length * size(elem_type)
210+
return maybe_length * elem_size(elem_type)
211211
return 8
212212

213213
def elem_size_record(fields):

design/mvp/canonical-abi/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def elem_size(t):
254254

255255
def elem_size_list(elem_type, maybe_length):
256256
if maybe_length is not None:
257-
return maybe_length * size(elem_type)
257+
return maybe_length * elem_size(elem_type)
258258
return 8
259259

260260
def elem_size_record(fields):

0 commit comments

Comments
 (0)