From 176a4b3591a7f258ab97395c8fa395d2614b2d28 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 28 Jan 2025 00:31:22 +0100 Subject: [PATCH] accounts/abi/bind/v2: add Backend type --- accounts/abi/bind/v2/backend.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/accounts/abi/bind/v2/backend.go b/accounts/abi/bind/v2/backend.go index 7c88480bdc..2d9a35e5fb 100644 --- a/accounts/abi/bind/v2/backend.go +++ b/accounts/abi/bind/v2/backend.go @@ -123,3 +123,11 @@ type ContractBackend interface { ContractTransactor ContractFilterer } + +// Backend combines all backend methods used in this package. This type is provided for +// convenience. It is meant to be used when you need to hold a reference to a backend that +// is used for both deployment and contract interaction. +type Backend interface { + DeployBackend + ContractBackend +}