calculateDefaultFee function
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(),
),
],
);
}