diff --git a/core/types/transaction.go b/core/types/transaction.go
index 49127630ae45759419ef9ac20d5050e3276d29c6..a35e07a5a3161b3c94ee9b814da8a8ed8cce9944 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -293,7 +293,7 @@ func (tx *Transaction) RawSignatureValues() (v, r, s *big.Int) {
 
 // GasPriceCmp compares the gas prices of two transactions.
 func (tx *Transaction) GasPriceCmp(other *Transaction) int {
-	return tx.inner.gasPrice().Cmp(other.GasPrice())
+	return tx.inner.gasPrice().Cmp(other.inner.gasPrice())
 }
 
 // GasPriceIntCmp compares the gas price of the transaction against the given price.