Skip to content

Conversation

@mraszyk
Copy link
Contributor

@mraszyk mraszyk commented May 14, 2024

Description

This PR makes it possible to derive the subaccount from a principal in the dfx ledger account-id command.
This is useful for NNS voters to validate NNS subnet rental request proposals by deriving the ledger account (controlled by the subnet rental canister's principal and using the proposer's principal as the subaccount) to which the proposer should have transfered the deposit.

How Has This Been Tested?

A new e2e test has been added comparing the account ID returned by DFX against the account ID computed by the SRC for the caller.

@mraszyk mraszyk requested review from a team and chenyan-dfinity as code owners May 14, 2024 05:52
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

@mraszyk mraszyk requested a review from a user May 15, 2024 10:38
@ghost ghost enabled auto-merge (squash) May 15, 2024 17:11
@ghost ghost merged commit fdd6ace into master May 15, 2024
@ghost ghost deleted the mraszyk/ledger-id-subaccount branch May 15, 2024 17:47
This pull request was closed.
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