Skip to content

Commit d497e6f

Browse files
committed
chore: refactor
1 parent 6ab0636 commit d497e6f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/common/utils/__tests__/fee.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable spellcheck/spell-checker */
21
import { NormalizeFeeDataSet, PrepareTxForHookFee } from '../fee';
32

43
import * as AccountLib from 'xrpl-accountlib';

src/services/NetworkService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,16 +331,16 @@ class NetworkService extends EventEmitter {
331331
try {
332332
const resp = await this.send<FeeRequest, FeeResponse>({
333333
command: 'fee',
334-
tx_blob: PrepareTxForHookFee(txJson, this.getNetwork().definitions),
334+
tx_blob: PrepareTxForHookFee(txJson, this.getNetwork().definitions, this.getNetworkId()),
335335
});
336336

337337
if ('error' in resp) {
338338
throw new Error(`got error from network ${resp.error}`);
339339
}
340340

341341
resolve(NormalizeFeeDataSet(resp));
342-
} catch (e) {
343-
this.logger.warn('Unable to calculate available network fees:', e);
342+
} catch (error: any) {
343+
this.logger.warn('Unable to calculate available network fees:', error);
344344
reject(new Error('Unable to calculate available network fees!'));
345345
}
346346
});

0 commit comments

Comments
 (0)