Skip to content

Commit

Permalink
Copy maxFeeInFeeCurrency in transaction getMaxFee...
Browse files Browse the repository at this point in the history
  • Loading branch information
hbandura committed Apr 22, 2024
1 parent 77c1b22 commit 0edebb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,13 @@ func (tx *Transaction) GatewaySet() bool {
func (tx *Transaction) EthCompatible() bool { return tx.inner.ethCompatible() }

// MaxFeeInFeeCurrency returns the max fee in the fee_currency for celo denominated txs.
func (tx *Transaction) MaxFeeInFeeCurrency() *big.Int { return tx.inner.maxFeeInFeeCurrency() }
func (tx *Transaction) MaxFeeInFeeCurrency() *big.Int {
maxFee := tx.inner.maxFeeInFeeCurrency()
if maxFee == nil {
return nil
}
return new(big.Int).Set(maxFee)
}

// Fee calculates the fess paid by the transaction include the gateway fee.
func (tx *Transaction) Fee() *big.Int {
Expand Down

0 comments on commit 0edebb3

Please sign in to comment.