Likes - Activity - pogginicolo98 - Algorand

Is there any framework for unit tests for smart contracts?

If you use sandbox in dev mode, then every transaction creates a block. So no wait needed. AlgoPyTest makes it simpler to write unit tests: Welcome to AlgoPytest’s documentation! — AlgoPytest documentation Finally, graviton allows you to make more fine-grained testing of smart contracts:

It is h…

Problem with ed25519verify

You can make additional “noop” app calls to increase your opcode budget, note that you’ll need to appropriately handle them in the contract and probably add some nonce to the note field since they’ll probably be identical besides that and you’ll get an error message saying something like “transacti…

How can I store structs, arrays and mappings in PyTeal?

On problem 2, most structs, lists, etc can be converted to byte arrays which can be stored in local or global state. That said, writing teal or Pyteal to manipulate or read the structs inside the contract can be difficult. The Beaker project implements some key functionality that makes handling this…