From 0c022f0247df7d0163641bcef870cd34267846c6 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Wed, 8 Jan 2025 11:58:42 +0800 Subject: [PATCH] accounts/abi/bind: set Context in TransactOpts (#23188) --- accounts/abi/bind/auth.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index 5ed3786064aa1..83e663a057597 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -17,6 +17,7 @@ package bind import ( + "context" "crypto/ecdsa" "errors" "io" @@ -72,6 +73,7 @@ func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account } return tx.WithSignature(signer, signature) }, + Context: context.Background(), }, nil } @@ -95,6 +97,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts { } return tx.WithSignature(signer, signature) }, + Context: context.Background(), } } @@ -131,6 +134,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou } return tx.WithSignature(signer, signature) }, + Context: context.Background(), }, nil } @@ -154,5 +158,6 @@ func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*Tr } return tx.WithSignature(signer, signature) }, + Context: context.Background(), }, nil }