Skip to content

Commit f97f6c9

Browse files
committed
Renaming functionId to functionName
1 parent 9d3a8bb commit f97f6c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sdk/src/program-manager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,19 +958,19 @@ class ProgramManager {
958958
*
959959
* @param {Object} params
960960
* @param params.program {string} The program source code to synthesize keys for
961-
* @param params.functionId {string} The function id to synthesize keys for
961+
* @param params.functionName {string} The function id to synthesize keys for
962962
* @param params.inputs {Array<string>} Sample inputs to the function
963963
* @param [params.privateKey] {PrivateKey | undefined} Optional private key to use for the key synthesis
964964
*
965965
* @returns {Promise<FunctionKeyPair>}
966966
*/
967967
async synthesizeKeys(params: {
968968
program: string,
969-
functionId: string,
969+
functionName: string,
970970
inputs: Array<string>,
971971
privateKey?: PrivateKey,
972972
}): Promise<FunctionKeyPair> {
973-
let { program, functionId, inputs, privateKey } = params;
973+
let { program, functionName, inputs, privateKey } = params;
974974

975975
// Resolve the program imports if they exist
976976
let imports;
@@ -990,7 +990,7 @@ class ProgramManager {
990990
const keyPair = await WasmProgramManager.synthesizeKeyPair(
991991
executionPrivateKey,
992992
program,
993-
functionId,
993+
functionName,
994994
inputs,
995995
imports,
996996
);

sdk/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function run(
6767
if (lastLocalProgram !== localProgram) {
6868
const keys = <FunctionKeyPair>await programManager.synthesizeKeys({
6969
program: localProgram,
70-
functionId: aleoFunction,
70+
functionName: aleoFunction,
7171
inputs,
7272
privateKey: PrivateKey.from_string(privateKey),
7373
});

0 commit comments

Comments
 (0)