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

Remove need for owner when fetching objects #512

Merged
merged 5 commits into from
Feb 22, 2022

Conversation

oxade
Copy link
Contributor

@oxade oxade commented Feb 22, 2022

This moves object info fetch to the manager/wallet level which avoids having to specify an owner for read-only operations.
The future plan is to move all read-only operations to top level.
CLI no longer needs to specify an owner/sender for operations. We can derive this from the gas.

Note:
Client could still use some cleanups in its data structures

@@ -73,8 +84,8 @@ impl<A> ClientAddressManager<A> {
ClientState::new_for_manager(
address,
secret,
committee,
authority_clients,
self.committee.clone(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do these need to live both in ClientManager and ClientState, or can we get away with a single copy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we should remove it from ClientState.
In my next PRs on this topic will add shared ownership of client state as well as cleanup some of this stuff as part of #411

@oxade oxade merged commit 59daa55 into main Feb 22, 2022
@oxade oxade deleted the enhanceremove-owner-dependency-for-object-get branch February 22, 2022 13:31
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