Skip to content

Commit 14ab4d5

Browse files
authored
Update lib.go
1 parent e9d795d commit 14ab4d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

accounts/abi/bind/v2/lib.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type ContractEvent interface {
4747
// provided filter opts are invalid or the backend is closed.
4848
//
4949
// FilterEvents is intended to be used with contract event unpack methods in
50-
// bindings generated with the abigen --v2 flag. In this case, it should be
50+
// bindings generated with the abigen --v2 flag. It should be
5151
// preferred over BoundContract.FilterLogs.
5252
func FilterEvents[Ev ContractEvent](c *BoundContract, opts *FilterOpts, unpack func(*types.Log) (*Ev, error), topics ...[]any) (*EventIterator[Ev], error) {
5353
var e Ev
@@ -67,7 +67,7 @@ func FilterEvents[Ev ContractEvent](c *BoundContract, opts *FilterOpts, unpack f
6767
// invalid or the backend is closed.
6868
//
6969
// WatchEvents is intended to be used with contract event unpack methods in
70-
// bindings generated with the abigen --v2 flag. In this case, it should be
70+
// bindings generated with the abigen --v2 flag. It should be
7171
// preferred over BoundContract.WatchLogs.
7272
func WatchEvents[Ev ContractEvent](c *BoundContract, opts *WatchOpts, unpack func(*types.Log) (*Ev, error), sink chan<- *Ev, topics ...[]any) (event.Subscription, error) {
7373
var e Ev
@@ -178,8 +178,8 @@ func (it *EventIterator[T]) Close() error {
178178
// doesn't revert.
179179
//
180180
// Call is intended to be used with contract method unpack methods in
181-
// bindings generated with the abigen --v2 flag. In this case, it should be
182-
// preferred over BoundContract.Call.
181+
// bindings generated with the abigen --v2 flag. It should be
182+
// preferred over BoundContract.Call
183183
func Call[T any](c *BoundContract, opts *CallOpts, calldata []byte, unpack func([]byte) (T, error)) (T, error) {
184184
var defaultResult T
185185
packedOutput, err := c.CallRaw(opts, calldata)
@@ -216,7 +216,7 @@ func Transact(c *BoundContract, opt *TransactOpts, data []byte) (*types.Transact
216216
// if the creation failed.
217217
//
218218
// To initiate the deployment of multiple contracts with one method call, see the
219-
// LinkAndDeploy method.
219+
// [LinkAndDeploy] method.
220220
func DeployContract(opts *TransactOpts, bytecode []byte, backend ContractBackend, constructorInput []byte) (common.Address, *types.Transaction, error) {
221221
c := NewBoundContract(common.Address{}, abi.ABI{}, backend, backend, backend)
222222

0 commit comments

Comments
 (0)