Brownie is a seemingly popular framework for testing smart contracts (both solidity and vyper) in python.

I've just gotten started with brownie and my first few tests are working. However, I can't figure out how to construct structs or enums in brownie's tests in the python code. Is this possible?

The brownie docs don't mention anything about structs or enums in their [Data Types docs](docs https://eth-brownie.readthedocs.io/en/stable/core-types.html) even though both solidity and vyper support them.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.