Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 12, 2023
1 parent b175311 commit 5a8490e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vyper/codegen/external_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def _extcodesize_check(address):

def _external_call_helper(contract_address, args_ir, call_kwargs, call_expr, context):
fn_type = call_expr.func._metadata["type"]
# the return type may differ from the function's return type if the function was
# imported via ABI e.g. widening of bytestrings
return_t = call_expr._metadata["type"] if fn_type.is_from_abi else fn_type.return_type

# sanity check
Expand Down

0 comments on commit 5a8490e

Please sign in to comment.