calculateDefaultFee function

StdFee calculateDefaultFee({
  1. required int msgsNumber,
  2. required int fee,
  3. required String denom,
  4. required int gas,
})

Calculates the default fees from the messages number msgsNumber contained in the transaction and the default values fee, denom and gas.

Implementation

StdFee calculateDefaultFee({
  required int msgsNumber,
  required int fee,
  required String denom,
  required int gas,
}) {
  return StdFee(
    gas: (gas * msgsNumber).toString(),
    amount: [
      StdCoin(
        denom: denom,
        amount: (fee * msgsNumber).toString(),
      ),
    ],
  );
}