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

feat: allow login to non-db contracts #185

Merged
merged 9 commits into from
Jul 1, 2024
Merged

Conversation

gagdiez
Copy link

@gagdiez gagdiez commented Apr 8, 2024

Before this commit, each time updateAccount was triggered the VM checked if the selector was connected - i.e. had an access key - to a contract different from SocialDB, and proceed to logout the user if that was the case.

This commit removes this constraint, allowing users to connect to both SocialDB and other contracts.

Before this commit, each time updateAccount was triggered the VM checked if the selector was connected - i.e. had an access key - to a contract different from SocialDB, and proceed to logout the user if that was the case.

This commit removes this constraint, allowing users to connect to both SocialDB and other contracts.
@gagdiez
Copy link
Author

gagdiez commented Apr 8, 2024

this PR solves issue #184

@evgenykuzyakov
Copy link
Contributor

evgenykuzyakov commented Apr 12, 2024

Don't remove the change, but make it configurable instead. This is desired behavior for default gateways that only use it with a single contract

@gagdiez
Copy link
Author

gagdiez commented Apr 15, 2024

@evgenykuzyakov yes, that makes sense. I reverted my changed and added a check for a config flag.

CHANGELOG.md Outdated Show resolved Hide resolved
@gagdiez
Copy link
Author

gagdiez commented May 17, 2024

changed the code based on @charleslavon request, now the initNear takes a allowExternalContract: <contractId>

@gagdiez gagdiez requested a review from charleslavon May 17, 2024 22:33
@charleslavon charleslavon merged commit a535195 into NearSocial:dev Jul 1, 2024
1 check failed
@charleslavon
Copy link
Contributor

I meant to push to this pr, not merge to dev. I'll push another change shortly.

@charleslavon
Copy link
Contributor

#198

@gagdiez gagdiez deleted the dev branch July 2, 2024 09:46
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.

3 participants