-
Notifications
You must be signed in to change notification settings - Fork 75
proposal: refine how we define PDA paths for some account types #753
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
Conversation
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Reinis-FRP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using state.seed seems more consistent. though there are some comments we delete that are not yet addressed.
| pub refund_address: Pubkey, | ||
| } | ||
|
|
||
| // TODO: update the name of this to EmergencyDeletedRootBundle and in EVM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have not fixed this in EVM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done here: #760
| State, | ||
| }; | ||
|
|
||
| //TODO: we have inconsistent imports in this file, in some places referencing from source crates (SvmSpoke::id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have not addressed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right but the thing it was referencing for some reason could not be refactored like other imports.
| pub remote_domain: u32, // CCTP domain for Mainnet Ethereum. | ||
| pub cross_domain_admin: Pubkey, // HubPool on Mainnet Ethereum. | ||
| pub root_bundle_id: u32, // TODO rename to next_root_bundle_id | ||
| pub root_bundle_id: u32, // Tracks the current root bundle id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it is not the current root bundle id. It is next one, thus we had comment to rename this prop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose to just update the comment accordingly.
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
this PR refines how we define PDAs in some places to make them more consistently dependent on the seed, rather than state