-
Notifications
You must be signed in to change notification settings - Fork 104
Add access control to Pausable trait examples #1764
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
63ea6b1
add require_auth to Pausable trait examples
leighmcculloch 9abc838
use mock_auths instead of mock_all_auths in test
leighmcculloch e5d0f91
inline mock_admin variable
leighmcculloch b123201
move admin auth to require_admin_auth trait fn
leighmcculloch cf42e9d
move ADMIN const below pub struct MyContract
leighmcculloch 33d3e9c
move require_admin_auth to free fn outside trait
leighmcculloch 78d1396
use RequireAdmin supertrait for admin auth
leighmcculloch bb05139
rename require_admin_auth to require_admin
leighmcculloch bd1a5e6
move PAUSED const inside Pausable trait
leighmcculloch 7b525c0
remove PAUSED and ADMIN consts, use inline strings
leighmcculloch 38757f3
add tests to all three doc examples
leighmcculloch 2e798e7
rename to RequireAuthForPause and require_auth_for_pause
leighmcculloch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.