Skip to content
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

Proposal: Account.principal → Account.owner #41

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

roman-kashitsyn
Copy link
Contributor

The working group decided to rename Account.principal to Account.owner
because "principal" is a reserved symbol in Candid, which might create
unnecessary friction for people trying to call the ledger using dfx.

The working group decided to rename Account.principal to Account.owner
because "principal" is a reserved symbol in Candid, which might create
unnecessary friction for people trying to call the ledger using dfx.
@roman-kashitsyn roman-kashitsyn merged commit c8c3074 into main Aug 3, 2022
@roman-kashitsyn roman-kashitsyn deleted the roman-account-owner branch August 3, 2022 09:34
dfinity-bot pushed a commit to dfinity/ic that referenced this pull request Aug 9, 2022
[FI-376] ICRC-1: modernize the Account type

This change updates the Account type and the TransferArg structure to
match the latest changes in the standard. Related ICRC-1 PRs:

* dfinity/ICRC-1#26
* dfinity/ICRC-1#41

In essence, we rename `Account.of` -> `Account.owner` and use the
`to : Account` field in TransferArg instead of `to_principal : principal`
and `to_subaccount : opt Subaccount` fields. 

See merge request dfinity-lab/public/ic!6824
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.

1 participant