Skip to content

Commit

Permalink
Fix dependency cycle.
Browse files Browse the repository at this point in the history
  • Loading branch information
abuiles committed Apr 13, 2020
1 parent d101496 commit 8c624f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Operation } from './operation';
import { Network } from './network';
import { Memo } from './memo';
import { Keypair } from './keypair';
import { BASE_FEE } from './transaction_builder';

/**
* Use {@link TransactionBuilder} to build a transaction object, unless you have
Expand Down Expand Up @@ -367,6 +366,7 @@ export class Transaction {
innerTxEnvelope,
networkPassphrase
) {
const BASE_FEE = '100';
const innerOps = innerTxEnvelope.tx().operations().length;
const minFee = new BigNumber(BASE_FEE).mul(innerOps + 1);
const fee = new BigNumber(baseFee).mul(innerOps + 1);
Expand Down

0 comments on commit 8c624f4

Please sign in to comment.