Skip to content

Commit

Permalink
change interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Sep 10, 2024
1 parent e575c22 commit 8fcec56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration-tests/deployment/ccip/view/noncemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (nm NonceManager) Address() common.Address {
return common.HexToAddress(nm.Contract.Address)
}

func NonceManagerSnapshot(nm NonceManagerGetter) (NonceManager, error) {
func NonceManagerSnapshot(nm NonceManagerReader) (NonceManager, error) {
authorizedCallers, err := nm.GetAllAuthorizedCallers(nil)
if err != nil {
return NonceManager{}, err
Expand All @@ -33,7 +33,7 @@ func NonceManagerSnapshot(nm NonceManagerGetter) (NonceManager, error) {
}, nil
}

type NonceManagerGetter interface {
type NonceManagerReader interface {
GetAllAuthorizedCallers(opts *bind.CallOpts) ([]common.Address, error)
TypeAndVersion(opts *bind.CallOpts) (string, error)
Address() common.Address
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/deployment/ccip/view/tokenadminregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (ta TokenAdminRegistry) Address() common.Address {
return common.HexToAddress(ta.Contract.Address)
}

func TokenAdminRegistrySnapshot(taContract TokenAdminRegistryGetter) (TokenAdminRegistry, error) {
func TokenAdminRegistrySnapshot(taContract TokenAdminRegistryReader) (TokenAdminRegistry, error) {
tokens, err := taContract.GetAllConfiguredTokens(nil, 0, 10)
if err != nil {
return TokenAdminRegistry{}, err
Expand All @@ -32,7 +32,7 @@ func TokenAdminRegistrySnapshot(taContract TokenAdminRegistryGetter) (TokenAdmin
}, nil
}

type TokenAdminRegistryGetter interface {
type TokenAdminRegistryReader interface {
GetAllConfiguredTokens(opts *bind.CallOpts, startIndex uint64, maxCount uint64) ([]common.Address, error)
TypeAndVersion(opts *bind.CallOpts) (string, error)
Address() common.Address
Expand Down

0 comments on commit 8fcec56

Please sign in to comment.