algorandfoundation / algokit-python-template

Official AlgoKit template for smart contract development project using Algorand Python
5 stars 3 forks source link

fix: patching algopy import syntax in hello world #30

Closed aorumbayev closed 2 months ago

aorumbayev commented 2 months ago

Proposed Changes

achidlow commented 2 months ago

This an okay change to make, but it's not just a syntax change between using algopy.arc4.String and algopy.String, it will change the byte code (probably for the better).

I'd keep the from algopy import arc4 though, rather than from algopy.arc4 import xyz, this is especially helpful to see at a glance where ARC-4 types are being used vs native, especially in the case the classes have the same names like String and UInt64