mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-18 10:31:22 +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 = {
|
const params = {
|
||||||
peer,
|
peer,
|
||||||
args: callArgs,
|
args: callArgs,
|
||||||
@ -108,6 +111,7 @@ export const v5_callFunction = async (
|
|||||||
const result = await callAquaFunction({
|
const result = await callAquaFunction({
|
||||||
script,
|
script,
|
||||||
...params,
|
...params,
|
||||||
|
fireAndForget: returnTypeVoid,
|
||||||
});
|
});
|
||||||
|
|
||||||
const valueSchema =
|
const valueSchema =
|
||||||
|
@ -50,7 +50,7 @@ export type CallAquaFunctionArgs = {
|
|||||||
config: CallAquaFunctionConfig | undefined;
|
config: CallAquaFunctionConfig | undefined;
|
||||||
peer: FluencePeer;
|
peer: FluencePeer;
|
||||||
args: { [key: string]: JSONValue | ArgCallbackFunction };
|
args: { [key: string]: JSONValue | ArgCallbackFunction };
|
||||||
fireAndForget?: boolean;
|
fireAndForget: boolean | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CallAquaFunctionConfig = {
|
export type CallAquaFunctionConfig = {
|
||||||
|
Reference in New Issue
Block a user