From 14ab4d5d52b1f0b5d3511dd39c93182afb4b8746 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 8 Mar 2025 18:37:05 +0100 Subject: [PATCH] Update lib.go --- accounts/abi/bind/v2/lib.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/accounts/abi/bind/v2/lib.go b/accounts/abi/bind/v2/lib.go index 6cb952c458..3831161341 100644 --- a/accounts/abi/bind/v2/lib.go +++ b/accounts/abi/bind/v2/lib.go @@ -47,7 +47,7 @@ type ContractEvent interface { // provided filter opts are invalid or the backend is closed. // // FilterEvents is intended to be used with contract event unpack methods in -// bindings generated with the abigen --v2 flag. In this case, it should be +// bindings generated with the abigen --v2 flag. It should be // preferred over BoundContract.FilterLogs. func FilterEvents[Ev ContractEvent](c *BoundContract, opts *FilterOpts, unpack func(*types.Log) (*Ev, error), topics ...[]any) (*EventIterator[Ev], error) { var e Ev @@ -67,7 +67,7 @@ func FilterEvents[Ev ContractEvent](c *BoundContract, opts *FilterOpts, unpack f // invalid or the backend is closed. // // WatchEvents is intended to be used with contract event unpack methods in -// bindings generated with the abigen --v2 flag. In this case, it should be +// bindings generated with the abigen --v2 flag. It should be // preferred over BoundContract.WatchLogs. func WatchEvents[Ev ContractEvent](c *BoundContract, opts *WatchOpts, unpack func(*types.Log) (*Ev, error), sink chan<- *Ev, topics ...[]any) (event.Subscription, error) { var e Ev @@ -178,8 +178,8 @@ func (it *EventIterator[T]) Close() error { // doesn't revert. // // Call is intended to be used with contract method unpack methods in -// bindings generated with the abigen --v2 flag. In this case, it should be -// preferred over BoundContract.Call. +// bindings generated with the abigen --v2 flag. It should be +// preferred over BoundContract.Call func Call[T any](c *BoundContract, opts *CallOpts, calldata []byte, unpack func([]byte) (T, error)) (T, error) { var defaultResult T packedOutput, err := c.CallRaw(opts, calldata) @@ -216,7 +216,7 @@ func Transact(c *BoundContract, opt *TransactOpts, data []byte) (*types.Transact // if the creation failed. // // To initiate the deployment of multiple contracts with one method call, see the -// LinkAndDeploy method. +// [LinkAndDeploy] method. func DeployContract(opts *TransactOpts, bytecode []byte, backend ContractBackend, constructorInput []byte) (common.Address, *types.Transaction, error) { c := NewBoundContract(common.Address{}, abi.ABI{}, backend, backend, backend)