From 74ec7022c223466882e7e7be72ff0e9e5aca088c Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Tue, 14 Jan 2025 10:56:12 +0800 Subject: [PATCH] accounts/abi/bind: replace context.TODO with context.Background (#23088) --- accounts/abi/bind/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index eac659e7d4..6cde7d0ab0 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -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 }