Skip to content

Commit

Permalink
accounts/abi/bind: replace context.TODO with context.Background (ethe…
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored and gzliudan committed Jan 10, 2025
1 parent fd6a02f commit dd71d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit dd71d46

Please sign in to comment.