We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab9f7fe commit 703f2a0Copy full SHA for 703f2a0
core/types/transaction.go
@@ -647,6 +647,9 @@ func (m Message) WithEmptyPrivateData(b bool) Message {
647
}
648
649
func (tx *Transaction) IsPrivate() bool {
650
+ if tx == nil {
651
+ return false
652
+ }
653
v, _, _ := tx.RawSignatureValues()
654
if v == nil {
655
return false
@@ -675,7 +678,7 @@ func (tx *Transaction) SetPrivate() {
675
678
676
679
677
680
func (tx *Transaction) IsPrivacyMarker() bool {
- return tx.To() != nil && *tx.To() == common.QuorumPrivacyPrecompileContractAddress()
681
+ return tx != nil && tx.To() != nil && *tx.To() == common.QuorumPrivacyPrecompileContractAddress()
682
683
684
// PrivacyMetadata encapsulates privacy information to be attached
0 commit comments