1717package bind
1818
1919import (
20+ "context"
2021 "crypto/ecdsa"
2122 "errors"
2223 "io"
@@ -74,6 +75,7 @@ func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account
7475 }
7576 return tx .WithSignature (signer , signature )
7677 },
78+ Context : context .Background (),
7779 }, nil
7880}
7981
@@ -97,6 +99,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
9799 }
98100 return tx .WithSignature (signer , signature )
99101 },
102+ Context : context .Background (),
100103 }
101104}
102105
@@ -133,6 +136,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
133136 }
134137 return tx .WithSignature (signer , signature )
135138 },
139+ Context : context .Background (),
136140 }, nil
137141}
138142
@@ -156,6 +160,7 @@ func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*Tr
156160 }
157161 return tx .WithSignature (signer , signature )
158162 },
163+ Context : context .Background (),
159164 }, nil
160165}
161166
@@ -170,5 +175,6 @@ func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account)
170175 }
171176 return clef .SignTx (account , transaction , nil ) // Clef enforces its own chain id
172177 },
178+ Context : context .Background (),
173179 }
174180}
0 commit comments