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

Add acl to near-token-contract #20

Merged
merged 12 commits into from
Nov 22, 2022
Merged

Add acl to near-token-contract #20

merged 12 commits into from
Nov 22, 2022

Conversation

mooori
Copy link
Contributor

@mooori mooori commented Oct 14, 2022

Adds access control based on near-plugins to near-token-contract.

Running the following test verifies that access control is set up correctly:

cargo test test_near_token_contract_acl

If other developers using the acl plugin are expected to write similar tests, we might consider exporting test helpers from near-plugins. Something similar to this.

@mooori mooori marked this pull request as ready for review October 14, 2022 17:06
@mooori mooori requested a review from mfornet October 17, 2022 12:30
Copy link
Contributor

@mfornet mfornet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I skimmed over the PR and it looks good. Let me give a second review.

In the meantime can you resolve conflicts?

Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@mfornet mfornet self-requested a review October 19, 2022 11:09
It allowed some cleanups thanks to recent updates in near-plugins.
@mooori
Copy link
Contributor Author

mooori commented Oct 19, 2022

The conflicts are resolved and the dependencies (near-plugins, workspaces) updated.

Copy link
Contributor

@mfornet mfornet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made several changes including the functions to the factory in: #24. Please take a look to merge it here, then to master.

Cargo.toml Outdated Show resolved Hide resolved
@mooori
Copy link
Contributor Author

mooori commented Nov 21, 2022

What's new: Made the changes proposed in #24 and cleaned up several things (see commit messages for details).

@mooori mooori requested a review from mfornet November 21, 2022 09:03
@mfornet mfornet merged commit 4b306c8 into main Nov 22, 2022
@mfornet mfornet deleted the acl branch November 22, 2022 22:23
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.

2 participants