addLiquidityTx method
Implementation
Future<RawEvmTransaction> addLiquidityTx({
required String tokenA,
required String tokenB,
required BigInt amountADesired,
required BigInt amountBDesired,
required BigInt amountAMin,
required BigInt amountBMin,
required String to,
required BigInt deadline,
required String sender,
}) async {
final function = abi.getFunction("addLiquidity")!;
final result = await buildTransactionForFunction(
sender: sender,
function: function.addValues(
values: [
tokenA,
tokenB,
amountADesired,
amountBDesired,
amountAMin,
amountBMin,
to,
deadline,
],
),
);
return result;
}