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

Fix: allow deposit to be called by any account #23

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

birchmd
Copy link
Contributor

@birchmd birchmd commented Mar 17, 2023

Now that we no longer have any notion of deposit relayer or fee the deposit function does not make use of predecessor_id (except to check if the caller is the owner in the pausing logic). Therefore I think it is safe to open up this function to any account, not just the Aurora Engine. I think it also important that we do this so that the deposit function in Aurora Engine can be deprecated and eventually removed when it is no longer used (e.g. by the bridge).

@birchmd birchmd requested review from aleksuss and joshuajbouw March 17, 2023 18:42
@birchmd birchmd requested a review from mrLSD as a code owner March 17, 2023 18:42
Copy link
Collaborator

@mrLSD mrLSD left a comment

Choose a reason for hiding this comment

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

Looks like a good proposal. I can't see side effects.

Some funny fact is that after removing the access right check - the tests were not failed.

@aleksuss
Copy link
Collaborator

Some funny fact is that after removing the access right check - the tests were not failed

I guess it's an excellent point for adding related tests 😄

@birchmd birchmd merged commit 8b42f54 into master Mar 20, 2023
@birchmd birchmd deleted the fix/birchmd/unrestricted-deposit branch March 20, 2023 13:36
@mrLSD mrLSD added the enhancement New feature or request label Mar 31, 2023
@mrLSD mrLSD added this to the v0.4.2 milestone Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants