Skip to content

Transfer command uses AccountOwner type.#3573

Merged
deuszx merged 2 commits intomainfrom
transfer-use-accountowner-type
Mar 16, 2025
Merged

Transfer command uses AccountOwner type.#3573
deuszx merged 2 commits intomainfrom
transfer-use-accountowner-type

Conversation

@deuszx
Copy link
Contributor

@deuszx deuszx commented Mar 14, 2025

Motivation

Continuation of the cleanup.

Proposal

Transfer command now uses AccountOwner::Chain in place where None was used.

Test Plan

CI

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@deuszx deuszx force-pushed the transfer-use-accountowner-type branch 2 times, most recently from 493adfa to eef4aff Compare March 14, 2025 14:38
@deuszx deuszx requested review from afck, bart-linera and ma2bd March 14, 2025 14:40
@deuszx deuszx marked this pull request as ready for review March 14, 2025 14:40
@deuszx deuszx force-pushed the transfer-use-accountowner-type branch from eef4aff to 9aee4a1 Compare March 14, 2025 14:51
@deuszx deuszx force-pushed the cleanup-account-owner-chain branch from 9a67aed to b6110b9 Compare March 16, 2025 16:05
Base automatically changed from cleanup-account-owner-chain to main March 16, 2025 16:38
@deuszx deuszx force-pushed the transfer-use-accountowner-type branch from 9aee4a1 to 3ab8c5a Compare March 16, 2025 16:41
block.with_native_token_transfer(Some(owner), Recipient::Burn, transfer_amount);
block.with_native_token_transfer(
AccountOwner::User(owner),
Recipient::Burn,
Copy link
Contributor

@ma2bd ma2bd Mar 16, 2025

Choose a reason for hiding this comment

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

We can probably kill this Burn thing by the way and simplify (away?) Recipient now. People will be able to send to address 0x0 (or anything really) if they really want to burn tokens.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@ma2bd ma2bd left a comment

Choose a reason for hiding this comment

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

LGTM but perhaps we can let @afck have another look

@deuszx deuszx merged commit 4d77d02 into main Mar 16, 2025
23 checks passed
@deuszx deuszx deleted the transfer-use-accountowner-type branch March 16, 2025 18:41
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.

4 participants