Skip to content

Commit

Permalink
add nil tx check (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon authored Jul 12, 2021
1 parent 4ff6e5f commit ba1fdf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/filters/dropped_tx_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type rejectNotification struct {
// newRPCTransaction returns a transaction that will serialize to the RPC
// representation, with the given location metadata set (if available).
func newRPCPendingTransaction(tx *types.Transaction) *ethapi.RPCTransaction {
if tx == nil {
return nil
}
var signer types.Signer
if tx.Protected() {
signer = types.LatestSignerForChainID(tx.ChainId())
Expand Down

0 comments on commit ba1fdf4

Please sign in to comment.