ProvableHQ / sdk

A Software Development Kit (SDK) for Zero-Knowledge Transactions
https://provable.tools
GNU General Public License v3.0
593 stars 471 forks source link

Removes extra caller input from transfer_public #905

Open Zack-Xb opened 4 months ago

Zack-Xb commented 4 months ago

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}).