Skip to content

Commit c658c57

Browse files
committed
safe pointer
1 parent afe69ec commit c658c57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/config/chain_scoped.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ func (e *EVMConfig) FinalityTagEnabled() bool {
113113
}
114114

115115
func (e *EVMConfig) SafeTagSupported() bool {
116-
return *e.C.SafeTagSupported
116+
if e == nil || e.C == nil || e.C.SafeTagSupported == nil {
117+
return false
118+
}
119+
return *e.C.SafeTagSupported
117120
}
118121

119122
func (e *EVMConfig) LogKeepBlocksDepth() uint32 {

0 commit comments

Comments
 (0)