14 lines
407 B
TypeScript
14 lines
407 B
TypeScript
import { ContractCall, constructContractIssuer, prepareQueueContractCall } from '@coinweb/contract-kit';
|
|
|
|
export const constructCall = (
|
|
contractId: string,
|
|
methodName: string,
|
|
methodArgs: unknown[],
|
|
cost: bigint,
|
|
auth: boolean = true
|
|
): ContractCall => {
|
|
const issuer = constructContractIssuer(contractId);
|
|
|
|
return prepareQueueContractCall(issuer, { methodName, methodArgs }, cost, auth);
|
|
};
|