accounts/abi/bind: replace context.TODO with context.Background (#23088)

This commit is contained in:
Daniel Liu 2025-01-14 10:56:12 +08:00
parent e26b70e5cc
commit 74ec7022c2

View file

@ -498,7 +498,7 @@ func (c *BoundContract) UnpackLogIntoMap(out map[string]interface{}, event strin
// user specified it as such.
func ensureContext(ctx context.Context) context.Context {
if ctx == nil {
return context.TODO()
return context.Background()
}
return ctx
}