Skip to content

Commit 10ddf9e

Browse files
committed
fix: use pointer receiver
1 parent 9e7613e commit 10ddf9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chain/mcms/adapters/chain_access.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ func Wrap(inner chain.BlockChains) ChainAccessAdapter {
2222
}
2323

2424
// Selectors returns all known chain selectors (sorted by CLDF).
25-
func (a ChainAccessAdapter) Selectors() []uint64 {
25+
func (a *ChainAccessAdapter) Selectors() []uint64 {
2626
return a.inner.ListChainSelectors()
2727
}
2828

2929
// EVMClient returns an EVM client for the given selector.
30-
func (a ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool) {
30+
func (a *ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool) {
3131
ch, ok := a.inner.EVMChains()[selector]
3232
if !ok {
3333
return nil, false
@@ -37,7 +37,7 @@ func (a ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBacken
3737
}
3838

3939
// SolanaClient returns the Solana RPC client for the given selector.
40-
func (a ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool) {
40+
func (a *ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool) {
4141
ch, ok := a.inner.SolanaChains()[selector]
4242
if !ok {
4343
return nil, false
@@ -47,7 +47,7 @@ func (a ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool)
4747
}
4848

4949
// AptosClient returns the Aptos RPC client for the given selector.
50-
func (a ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool) {
50+
func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool) {
5151
ch, ok := a.inner.AptosChains()[selector]
5252
if !ok {
5353
return nil, false
@@ -57,7 +57,7 @@ func (a ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClien
5757
}
5858

5959
// SuiClient returns the Sui API client and signer for the given selector.
60-
func (a ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, mcmssui.SuiSigner, bool) {
60+
func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, mcmssui.SuiSigner, bool) {
6161
ch, ok := a.inner.SuiChains()[selector]
6262
if !ok {
6363
return nil, nil, false

0 commit comments

Comments
 (0)