-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Conversation
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.