Skip to content

Commit 37ce7e4

Browse files
committed
accounts/abi/bind: set Context in TransactOpts (ethereum#23188)
1 parent 14173b5 commit 37ce7e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

accounts/abi/bind/auth.go

Lines changed: 5 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"
@@ -72,6 +73,7 @@ func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account
7273
}
7374
return tx.WithSignature(signer, signature)
7475
},
76+
Context: context.Background(),
7577
}, nil
7678
}
7779

@@ -95,6 +97,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
9597
}
9698
return tx.WithSignature(signer, signature)
9799
},
100+
Context: context.Background(),
98101
}
99102
}
100103

@@ -131,6 +134,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
131134
}
132135
return tx.WithSignature(signer, signature)
133136
},
137+
Context: context.Background(),
134138
}, nil
135139
}
136140

@@ -154,5 +158,6 @@ func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*Tr
154158
}
155159
return tx.WithSignature(signer, signature)
156160
},
161+
Context: context.Background(),
157162
}, nil
158163
}

0 commit comments

Comments
 (0)