clause method
There are two types of calls:
- Function call on a smart contract Build a clause according to the function name and params. raise Exception when function is not found by name.
- Pure transfer of VET Set the contract, func_name, and funcParams to None Parameters
contract : Contract On which contract the function is sitting. func_name : str Name of the function. funcParams : List Function params supplied by users. to : str Address of the contract. value : int, optional VET sent with the clause in Wei, by default 0
Implementation
RClause clause(Contract contract, String funcName, List funcParams, String to,
{BigInt? value}) {
value ??= BigInt.zero;
return RClause(to,
contract: contract,
functionName: funcName,
functionParameters: funcParams,
value: value);
}