We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env is always passed from execute and query to the specific execute / query functions, but barely used. Can we just skip passing env?
env
execute
query
The text was updated successfully, but these errors were encountered:
We can not skip passing it. Because you have to comply with the interface. env includes:
pub struct Env { pub block: BlockInfo, pub transaction: Option<TransactionInfo>, pub contract: ContractInfo, }
If you wish, you can use them in your smart contract.
Sorry, something went wrong.
No branches or pull requests
env
is always passed fromexecute
andquery
to the specific execute / query functions, but barely used. Can we just skip passingenv
?The text was updated successfully, but these errors were encountered: