@@ -18,6 +18,7 @@ import (
18
18
"github.com/smartcontractkit/chainlink-common/pkg/logger"
19
19
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
20
20
"github.com/smartcontractkit/chainlink-common/pkg/types"
21
+ soltypes "github.com/smartcontractkit/chainlink-common/pkg/types/solana"
21
22
22
23
"github.com/smartcontractkit/chainlink-solana/contracts/generated/buffer_payload"
23
24
"github.com/smartcontractkit/chainlink-solana/integration-tests/utils"
@@ -76,25 +77,25 @@ func Test_BufferPayload(t *testing.T) {
76
77
contractName := "buffer"
77
78
methodName := "execute"
78
79
79
- cwConfig := chainwriter. ChainWriterConfig {
80
- Programs : map [string ]chainwriter .ProgramConfig {
80
+ cwConfig := soltypes. ContractWriterConfig {
81
+ Programs : map [string ]soltypes .ProgramConfig {
81
82
contractName : {
82
- Methods : map [string ]chainwriter .MethodConfig {
83
+ Methods : map [string ]soltypes .MethodConfig {
83
84
methodName : {
84
85
FromAddress : sender .PublicKey ().String (),
85
86
ChainSpecificName : "execute" ,
86
87
ComputeUnitLimitOverhead : 150_000 ,
87
88
BufferPayloadMethod : "CCIPExecutionReportBuffer" ,
88
- Accounts : []chainwriter .Lookup {
89
+ Accounts : []soltypes .Lookup {
89
90
{
90
- AccountConstant : & chainwriter .AccountConstant {
91
+ AccountConstant : & soltypes .AccountConstant {
91
92
Address : sender .PublicKey ().String (),
92
93
IsSigner : true ,
93
94
IsWritable : true ,
94
95
},
95
96
},
96
97
{
97
- AccountConstant : & chainwriter .AccountConstant {
98
+ AccountConstant : & soltypes .AccountConstant {
98
99
Address : solana .SystemProgramID .String (),
99
100
IsSigner : false ,
100
101
IsWritable : false ,
@@ -176,7 +177,7 @@ func Test_BufferPayload(t *testing.T) {
176
177
})
177
178
}
178
179
179
- func initializeAndRunCW (t * testing.T , lggr logger.Logger , multiClient client.MultiClient , txm * txm.Txm , config chainwriter. ChainWriterConfig ) * chainwriter.SolanaChainWriterService {
180
+ func initializeAndRunCW (t * testing.T , lggr logger.Logger , multiClient client.MultiClient , txm * txm.Txm , config soltypes. ContractWriterConfig ) * chainwriter.SolanaChainWriterService {
180
181
cw , err := chainwriter .NewSolanaChainWriterService (lggr , multiClient , txm , nil , config )
181
182
require .NoError (t , err )
182
183
servicetest .Run (t , cw )
0 commit comments