Skip to content

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

Open
@ramirez7358

Description

@ramirez7358

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions