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

[primary_fungible_store] fix miswording #15767

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ module aptos_framework::primary_fungible_store {
fungible_asset::withdraw_with_ref(transfer_ref, from_primary_store, amount)
}

/// Deposit from the primary store of `owner` ignoring frozen flag.
/// Deposit to the primary store of `owner` ignoring frozen flag.
public fun deposit_with_ref(transfer_ref: &TransferRef, owner: address, fa: FungibleAsset) acquires DeriveRefPod {
let from_primary_store = ensure_primary_store_exists(
let to_primary_store = ensure_primary_store_exists(
owner,
fungible_asset::transfer_ref_metadata(transfer_ref)
);
fungible_asset::deposit_with_ref(transfer_ref, from_primary_store, fa);
fungible_asset::deposit_with_ref(transfer_ref, to_primary_store, fa);
}

/// Transfer `amount` of FA from the primary store of `from` to that of `to` ignoring frozen flag.
Expand Down
Loading