ink icon indicating copy to clipboard operation
ink copied to clipboard

Default accounts addresses do not match across integration and e2e tests.

Open ramirez7358 opened this issue 2 years ago • 0 comments

Describe the bug The aim of this function is to provide default test accounts, each given a fantasy name from "A" to "F" (Alice, Bob, etc.). The intention is for these accounts to exhibit determinism, thereby ensuring a predictable test environment. In this sense, it is reasonable to anticipate obtaining the same addresses both in Integration and in End-to-End scenarios.

On Integration, function resides within ink_env::test

pub fn default_accounts<T>() -> DefaultAccounts<T>

and each address holds different amounts of value. There are in total 6 test default accounts ("A" to "F").

On End-to-End there's no such implementation but an ink_e2e::AccountKeyring enum type which provides the default test accounts. There are in total 8 test default accounts ("A" to "F" and two more extra).

Expected behavior The e2e default accounts and integration tests should be exactly the same.

ramirez7358 avatar Oct 27 '23 17:10 ramirez7358