ethereum / pytest-ethereum

MIT License
19 stars 12 forks source link

Add `run_python` to linker fns #24

Closed njgheorghita closed 5 years ago

njgheorghita commented 5 years ago

What was wrong?

Linker tool would benefit from do_callback which allows to user to define any aribtrary callback_fn that can call functions on deployed contracts as part of the setup.

How was it fixed?

do_callback function performs the given callback_fn on the Package that's being passed through the linker fns. However, even if the callback_fn performs some adjustments on the Package - it is the original, unmodified Package that is passed onto the next linker fn. do_callback is fairly simple now, but will likely evolve to accommodate frequent use-cases down the road.

Cute Animal Picture

image