Skip to content

Commit 3aea432

Browse files
accounts/abi/bind: set Context in TransactOpts (#23188)
1 parent b20bc5c commit 3aea432

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

accounts/abi/bind/auth.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package bind
1818

1919
import (
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

Comments
 (0)