Skip to content

Commit a4fe4bf

Browse files
authored
feat: remove unused function AllDeployerKeys (#128)
This function was not used, and it was removed to clean up the codebase. Users can write their own function to retrieve deployer keys if needed.
1 parent aa4c5e6 commit a4fe4bf

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.changeset/tidy-donuts-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink-deployments-framework": minor
3+
---
4+
5+
Remove unused `deployment.AllDeployerKeys` function

deployment/environment.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"slices"
88
"sort"
99

10-
"github.com/ethereum/go-ethereum/common"
1110
"github.com/ethereum/go-ethereum/core/types"
1211
"github.com/ethereum/go-ethereum/rpc"
1312
"github.com/smartcontractkit/chainlink-common/pkg/logger"
@@ -297,15 +296,6 @@ func (e Environment) AllChainSelectorsAllFamiliesExcluding(excluding []uint64) [
297296
return ret
298297
}
299298

300-
func (e Environment) AllDeployerKeys() []common.Address {
301-
deployerKeys := make([]common.Address, 0, len(e.Chains))
302-
for sel := range e.Chains {
303-
deployerKeys = append(deployerKeys, e.Chains[sel].DeployerKey.From)
304-
}
305-
306-
return deployerKeys
307-
}
308-
309299
// ConfirmIfNoError confirms the transaction if no error occurred.
310300
// if the error is a DataError, it will return the decoded error message and data.
311301
func ConfirmIfNoError(chain Chain, tx *types.Transaction, err error) (uint64, error) {

0 commit comments

Comments
 (0)