We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a069cd commit b1983b0Copy full SHA for b1983b0
1 file changed
src/queries.ts
@@ -214,12 +214,8 @@ async function getL1State(walletConfig: WalletConfig): Promise<L1StateType> {
214
feeRatePromise,
215
]);
216
217
- const calculateFee = (tx: TransactionSkeletonType): bigint => {
218
- const baseFee = calculateTxFee(txSize(tx) + txSizeOverhead, feeRate);
219
- // Use a fee that is multiple of N=1249
220
- const N = 1249n;
221
- return ((baseFee + (N - 1n)) / N) * N;
222
- };
+ const calculateFee = (tx: TransactionSkeletonType): bigint =>
+ calculateTxFee(txSize(tx) + txSizeOverhead, feeRate);
223
224
const txBuilder = (isCkb2Udt: boolean, amount: bigint): TxInfo => {
225
if (amount > 0n) {
0 commit comments