You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the register function unwraps the return value for the contract instantiation, which makes testing the constructor errors impossible.
What would you like to see?
Add a try_register function that returns a Result and thus allows testing the constructor error conditions. Env already returns a Result from the respective functions.
What alternatives are there?
It's possible to cover constructor errors using a test-only deployer contract, but that is more cumbersome and only works with Wasm contracts.
The text was updated successfully, but these errors were encountered:
What problem does your feature solve?
Currently the
register
function unwraps the return value for the contract instantiation, which makes testing the constructor errors impossible.What would you like to see?
Add a
try_register
function that returns aResult
and thus allows testing the constructor error conditions. Env already returns aResult
from the respective functions.What alternatives are there?
It's possible to cover constructor errors using a test-only deployer contract, but that is more cumbersome and only works with Wasm contracts.
The text was updated successfully, but these errors were encountered: