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

[Build Breakage] Use new transfer_coin method in address manager. #692

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

arun-koshy
Copy link
Contributor

PR#604 was submitted without a merge to main and missed some changes to how address manager does a transfer. This will fix the breakage on main.

@arun-koshy arun-koshy requested review from lxfind and patrickkuo March 7, 2022 17:55
let (cert, effects, gas_used) = match wallet_context
.address_manager
.transfer_object(owner, object_id, gas_object_id, to_address)
.transfer_coin(owner, object_id, gas_object_id, to_address, tx_signer)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: an object can be a non-coin right? Why did we rename this method to transfer_coin then?

Copy link
Contributor

@lxfind lxfind Mar 7, 2022

Choose a reason for hiding this comment

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

No. It is not allowed to use the native transfer transaction to transfer a non-coin object.

Copy link
Contributor

@lxfind lxfind left a comment

Choose a reason for hiding this comment

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

Approve to unblock build break.
cc @patrickkuo to check the use of the signer

Copy link
Contributor

@patrickkuo patrickkuo left a comment

Choose a reason for hiding this comment

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

LGTM

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