Skip to content
New issue

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

allow optional credential + simulation mode #15

Merged
merged 5 commits into from
Jul 8, 2023
Merged

allow optional credential + simulation mode #15

merged 5 commits into from
Jul 8, 2023

Conversation

larry0x
Copy link
Owner

@larry0x larry0x commented Jul 8, 2023

Closes: #10

  1. Allow the credential in field in the BeforeTx method be optional. The credential may not be provided in simulation mode. See the issue Support simulations #10 for an additional use case for this
  2. Add a simulate parameter to the {Before,After}Tx methods to inform the contract whether the tx is being run in the simulation mode. The contract may skip some part of the authentication if it's in simulation mode

NOT TESTED. Will add tests in a separate PR

@larry0x larry0x marked this pull request as ready for review July 8, 2023 13:05
@larry0x larry0x merged commit fa3d9fe into main Jul 8, 2023
@larry0x larry0x deleted the simulation branch July 8, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support simulations
1 participant