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

Removes extra caller input from transfer_public #905

Open
wants to merge 1 commit into
base: testnet3
Choose a base branch
from

Conversation

Zack-Xb
Copy link

@Zack-Xb Zack-Xb commented Jul 26, 2024

Motivation

Executing a public transfer using the program manager transfer function fails as the transfer_public option in wasm/src/programs/manager/transfer.rs has 3 inputs not 2 as required by the program function as you can see here https://explorer.aleo.org/program/credits.aleo. Removing the first parameter should resolve this, and also the caller address parameter is not required for the transfer function.

Test Plan

Re compile the rust to wasm and test out executing ProgramManager.transfer({amount}, {recipient}, {transfer_type}, {fee}).

Copy link
Collaborator

@jaketarnow jaketarnow left a comment

Choose a reason for hiding this comment

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

Thanks for this @Zack-Xb!
lgtm

@jaketarnow jaketarnow requested review from christianwwwwwwww and removed request for Pauan July 29, 2024 21:55
Copy link
Collaborator

@christianwwwwwwww christianwwwwwwww left a comment

Choose a reason for hiding this comment

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

LGTM 🤓

Copy link
Collaborator

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

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

These do not include the changes to the javascript end of the SDK nor the Provable.tools website. Those signatures should also be updated - #907 addresses these.

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