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

This commit is contained in:
Guillaume Ballet 2021-06-22 11:06:34 +02:00 committed by GitHub
parent fcd7bdc2b7
commit ddf10250c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,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
}