-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: use EVM Simulated Chain Providers in deployments tests #18363
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
2aa1576
to
ecb44fd
Compare
func usersMap(t *testing.T, chains map[uint64]cldf_evm.Chain) map[uint64][]*bind.TransactOpts { | ||
t.Helper() | ||
|
||
users := make(map[uint64][]*bind.TransactOpts, 0) | ||
|
||
for _, c := range chains { | ||
users[c.ChainSelector()] = c.Users | ||
} | ||
|
||
return users | ||
} |
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.
This was previously returned when loading new chains, but ccip integration tests is the only place it is used.
This function replicates the behaviour but localises it to ccip
cd3146a
to
bd82060
Compare
bd82060
to
98f72d9
Compare
98f72d9
to
3d86bb3
Compare
2426de6
to
3278de0
Compare
3278de0
to
f4e8936
Compare
|
This PR refactors the EVM test/memory environment code to leverage chainlink-deployments-framework's new chain provider APIs for creating simulated EVM chains. It removes legacy functions and types for EVM chain generation in favor of
NewMemoryChainsEVM
andNewMemoryChainsEVMWithChainIDs
, and updates all test and setup code accordingly. Redundant and unused code has been deleted, and helper functions have been added or adjusted for compatibility with the new approach.