vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
251 stars 49 forks source link

Update FileInput to match vyper-0.4.0.rc5 #227

Closed ritzdorf closed 4 months ago

ritzdorf commented 4 months ago

What I did

Patch inconsistency of vyper-0.4.0 branch with new vyper version 0.4.0.rc5.

In vyper the FileInput no longer has a source_code field: https://github.com/vyperlang/vyper/blob/75c75c5631222dd1b98c23f8cfeedc080e47a9e3/vyper/compiler/input_bundle.py#L37-L40

How I did it

I used the contents field.

How to verify it

Use this example https://github.com/ritzdorf/titanoboa/?tab=readme-ov-file#basic It did no longer work.

Description for the changelog

Adjust FileInput usage to match updated vyper definition

Cute Animal Picture

08_CutestBabyAnimals__Quokkas_shutterstock_1608023803-3960770704