Skip to content

Commit

Permalink
Reorder params in DebitFees
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Jan 11, 2024
1 parent 9dbcba3 commit 06735fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/fee_currencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func ConvertGoldToCurrency(exchangeRates map[common.Address]*big.Rat, feeCurrenc
}

// Debits transaction fees from the transaction sender and stores them in the temporary address
func DebitFees(evm *vm.EVM, address common.Address, amount *big.Int, feeCurrency *common.Address) error {
func DebitFees(evm *vm.EVM, feeCurrency *common.Address, address common.Address, amount *big.Int) error {
if amount.Cmp(big.NewInt(0)) == 0 {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (st *StateTransition) subFees(effectiveFee *big.Int) (err error) {
st.state.SubBalance(st.msg.From, effectiveFee)
return nil
} else {
return fee_currencies.DebitFees(st.evm, st.msg.From, effectiveFee, st.msg.FeeCurrency)
return fee_currencies.DebitFees(st.evm, st.msg.FeeCurrency, st.msg.From, effectiveFee)
}
}

Expand Down

0 comments on commit 06735fe

Please sign in to comment.