Skip to content

Conversation

@chrismaree
Copy link
Member

@chrismaree chrismaree commented Nov 19, 2024

this PR refines how we define PDAs in some places to make them more consistently dependent on the seed, rather than state

Signed-off-by: chrismaree <[email protected]>
@chrismaree chrismaree marked this pull request as ready for review November 19, 2024 16:24
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Signed-off-by: chrismaree <[email protected]>
Copy link
Contributor

@Reinis-FRP Reinis-FRP left a 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.
Copy link
Contributor

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

Copy link
Member Author

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)
Copy link
Contributor

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

Copy link
Member Author

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.
Copy link
Contributor

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

Copy link
Member Author

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]>
@chrismaree chrismaree merged commit e5fd6fc into master Nov 23, 2024
9 checks passed
@chrismaree chrismaree deleted the chrismaree/comments-round-1 branch November 23, 2024 08:57
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