-// CalculateTxFee calculate transaction fee
-func CalculateTxFee(tx *types.Tx) (fee uint64) {
- totalInputBTM := uint64(0)
- totalOutputBTM := uint64(0)
-
- for _, input := range tx.Inputs {
- if input.InputType() != types.CoinbaseInputType && input.InputType() != types.DposInputType && input.AssetID() == *consensus.BTMAssetID {
- totalInputBTM += input.Amount()
+func checkGasInputIDs(tx *types.Tx) error {
+ for _, inp := range tx.Inputs {
+ switch inp.InputType() {
+ case types.CrossChainInputType:
+ return nil