mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-12 23:51:21 +00:00
Use new param
This commit is contained in:
@ -99,6 +99,9 @@ export const v5_callFunction = async (
|
||||
}),
|
||||
);
|
||||
|
||||
const returnTypeVoid =
|
||||
def.arrow.codomain.tag === "nil" || def.arrow.codomain.items.length === 0;
|
||||
|
||||
const params = {
|
||||
peer,
|
||||
args: callArgs,
|
||||
@ -108,6 +111,7 @@ export const v5_callFunction = async (
|
||||
const result = await callAquaFunction({
|
||||
script,
|
||||
...params,
|
||||
fireAndForget: returnTypeVoid,
|
||||
});
|
||||
|
||||
const valueSchema =
|
||||
|
@ -50,7 +50,7 @@ export type CallAquaFunctionArgs = {
|
||||
config: CallAquaFunctionConfig | undefined;
|
||||
peer: FluencePeer;
|
||||
args: { [key: string]: JSONValue | ArgCallbackFunction };
|
||||
fireAndForget?: boolean;
|
||||
fireAndForget: boolean | undefined;
|
||||
};
|
||||
|
||||
export type CallAquaFunctionConfig = {
|
||||
|
Reference in New Issue
Block a user