@@ -34,12 +34,12 @@ type ContractInstance struct {
3434 abi abi.ABI
3535}
3636
37- func NewContractInstance (addr common.Address , backend ContractBackend , abi abi.ABI ) * ContractInstance {
38- return & ContractInstance {addr , backend , abi }
37+ func NewContractInstance (addr common.Address , backend ContractBackend , abi abi.ABI ) ContractInstance {
38+ return ContractInstance {addr , backend , abi }
3939}
4040
4141// FilterEvents returns an EventIterator instance for filtering historical events based on the event id and a block range.
42- func FilterEvents [T any ](instance * ContractInstance , opts * FilterOpts , eventName string , unpack func (* types.Log ) (* T , error ), topics ... []any ) (* EventIterator [T ], error ) {
42+ func FilterEvents [T any ](instance ContractInstance , opts * FilterOpts , eventName string , unpack func (* types.Log ) (* T , error ), topics ... []any ) (* EventIterator [T ], error ) {
4343 backend := instance .Backend
4444 c := bind1 .NewBoundContract (instance .Address , instance .abi , backend , backend , backend )
4545 logs , sub , err := c .FilterLogs (opts , eventName , topics ... )
@@ -53,7 +53,7 @@ func FilterEvents[T any](instance *ContractInstance, opts *FilterOpts, eventName
5353// contract to be intercepted, unpacked, and forwarded to sink. If
5454// unpack returns an error, the returned subscription is closed with the
5555// error.
56- func WatchEvents [T any ](instance * ContractInstance , opts * WatchOpts , eventName string , unpack func (* types.Log ) (* T , error ), sink chan <- * T , topics ... []any ) (event.Subscription , error ) {
56+ func WatchEvents [T any ](instance ContractInstance , opts * WatchOpts , eventName string , unpack func (* types.Log ) (* T , error ), sink chan <- * T , topics ... []any ) (event.Subscription , error ) {
5757 backend := instance .Backend
5858 c := bind1 .NewBoundContract (instance .Address , instance .abi , backend , backend , backend )
5959 logs , sub , err := c .WatchLogs (opts , eventName , topics ... )
@@ -160,7 +160,7 @@ func (it *EventIterator[T]) Close() error {
160160
161161// Transact creates and submits a transaction to the bound contract instance
162162// using the provided abi-encoded input (or nil).
163- func Transact (instance * ContractInstance , opts * TransactOpts , input []byte ) (* types.Transaction , error ) {
163+ func Transact (instance ContractInstance , opts * TransactOpts , input []byte ) (* types.Transaction , error ) {
164164 var (
165165 addr = instance .Address
166166 backend = instance .Backend
@@ -171,7 +171,7 @@ func Transact(instance *ContractInstance, opts *TransactOpts, input []byte) (*ty
171171
172172// Call performs an eth_call on the given bound contract instance, using the
173173// provided abi-encoded input (or nil).
174- func Call [T any ](instance * ContractInstance , opts * CallOpts , packedInput []byte , unpack func ([]byte ) (T , error )) (T , error ) {
174+ func Call [T any ](instance ContractInstance , opts * CallOpts , packedInput []byte , unpack func ([]byte ) (T , error )) (T , error ) {
175175 var defaultResult T
176176 backend := instance .Backend
177177 c := bind1 .NewBoundContract (instance .Address , instance .abi , backend , backend , backend )
0 commit comments