Skip to content

Commit

Permalink
Merge pull request #1330 from dusk-network/mempool-by-gasprice-1320
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia authored Mar 7, 2022
2 parents b734202 + e98d625 commit 2526c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/core/data/ipc/transactions/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (t Transaction) deepCopy() *Transaction {
}
}

// Fee returns GasLimit.
// Fee returns GasPrice.
func (t Transaction) Fee() (uint64, error) {
if t.Payload == nil {
return 0, errors.New("payload is nil")
Expand All @@ -79,7 +79,7 @@ func (t Transaction) Fee() (uint64, error) {
return 0, err
}

return decoded.Fee.GasLimit, nil
return decoded.Fee.GasPrice, nil
}

// GasSpent returns gas spent on transaction execution.
Expand Down

0 comments on commit 2526c44

Please sign in to comment.