Skip to content

Commit

Permalink
fix: handle implicit conversions of algopy.Account to `algopy.arc4.…
Browse files Browse the repository at this point in the history
…Address`
  • Loading branch information
daniel-makerx committed Feb 21, 2025
1 parent e678cda commit 6ef05bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/puya/ir/builder/arc4.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def encode_value_provider(
length = factory.len(value, "length")
length_uint16 = factory.as_u16_bytes(length, "length_uint16")
return factory.concat(length_uint16, value, "encoded_value")
case (wtypes.arc4_address_alias, wtypes.account_wtype):
return value_provider
case (
wtypes.ARC4Array(),
wtypes.StackArray(),
Expand Down

0 comments on commit 6ef05bc

Please sign in to comment.