Skip to content

Unify initial getters #1977

@Fumuran

Description

@Fumuran

Currently some of the get_initial_<something> procedures in the account module implicitly return the values corresponding to the native account regardless of which account is current — native or foreign. We should rework them so that any get_intitial_* procedure would return the initial value of the current account.

To be able for the foreign accounts to get the data of the native account, we should create (or modify) procedures to have native "infix" in their names, making it clear that the returning value is associated with the native account. Some of the existing procedures already implement this (like get_native_id).

Originally posted by @Fumuran in #1959 (comment) and @bobbinth in #1959 (comment)

Metadata

Metadata

Assignees

Labels

kernelsRelated to transaction, batch, or block kernels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions