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

Token pools CSs: add support for test router, update remote address encodings #16178

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kylesmartin
Copy link
Contributor

  • Left pad remote addresses to 32 bytes
  • Allow for deploying token pools with the test router

@kylesmartin kylesmartin requested review from AnieeG and a team as code owners January 31, 2025 21:19
@kylesmartin kylesmartin changed the title Add support for test router to token pool changesets, update remote a… Token pools CSs: add support for test router, update remote address encodings Jan 31, 2025
@@ -121,8 +123,14 @@ func (c DeployTokenPoolContractsConfig) Validate(env deployment.Environment) err
if !ok {
return fmt.Errorf("chain with selector %d does not exist in state", chainSelector)
}
if router := chainState.Router; router == nil {
return fmt.Errorf("missing router on %s", chain.String())
if c.UseTestRouter {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit : following the same name what we have for other changeset, feel free to ignore.

Suggested change
if c.UseTestRouter {
if c.IsTestRouter {

@@ -151,7 +159,7 @@ func DeployTokenPoolContractsChangeset(env deployment.Environment, c DeployToken
chain := env.Chains[chainSelector]
chainState := state.Chains[chainSelector]

_, err := DeployTokenPool(env.Logger, chain, chainState, newAddresses, poolConfig)
_, err := DeployTokenPool(env.Logger, chain, chainState, newAddresses, poolConfig, c.UseTestRouter)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit : probably easier to take router address as input param?

should DeployTokenPool be unexported?

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