@@ -9437,6 +9437,7 @@ func TestCCIPRouter(t *testing.T) {
9437
9437
hash , err := ccip .HashAnyToSVMMessage (message , config .OnRampAddress , msgAccounts )
9438
9438
require .NoError (t , err )
9439
9439
root , err := ccip .MerkleFrom ([][32 ]byte {[32 ]byte (hash )})
9440
+ require .NoError (t , err )
9440
9441
9441
9442
commitReport := ccip_offramp.CommitInput {
9442
9443
MerkleRoot : & ccip_offramp.MerkleRoot {
@@ -9517,12 +9518,12 @@ func TestCCIPRouter(t *testing.T) {
9517
9518
// We now build a buffer for the report and CPI to the executor instead.
9518
9519
9519
9520
// Arbitrary number decided by the caller, as long as it's not repeated between reports.
9520
- bufferId := uint64 (0 )
9521
+ bufferID := uint64 (0 )
9521
9522
9522
- bufferIdLE := common .Uint64ToLE (bufferId )
9523
- bufferPDA , _ , _ := solana .FindProgramAddress ([][]byte {[]byte ("execution_buffer" ), transmitter .PublicKey ().Bytes (), bufferIdLE }, config .ExecutionBuffer )
9523
+ bufferIDLittleEndian := common .Uint64ToLE (bufferID )
9524
+ bufferPDA , _ , _ := solana .FindProgramAddress ([][]byte {[]byte ("execution_buffer" ), transmitter .PublicKey ().Bytes (), bufferIDLittleEndian }, config .ExecutionBuffer )
9524
9525
9525
- bufferInitIx , err := execution_buffer .NewInitializeExecutionReportBufferInstruction (bufferId , bufferPDA , transmitter .PublicKey (), solana .SystemProgramID ).ValidateAndBuild ()
9526
+ bufferInitIx , err := execution_buffer .NewInitializeExecutionReportBufferInstruction (bufferID , bufferPDA , transmitter .PublicKey (), solana .SystemProgramID ).ValidateAndBuild ()
9526
9527
require .NoError (t , err )
9527
9528
testutils .SendAndConfirm (ctx , t , solanaGoClient , []solana.Instruction {bufferInitIx }, transmitter , config .DefaultCommitment )
9528
9529
@@ -9533,13 +9534,13 @@ func TestCCIPRouter(t *testing.T) {
9533
9534
9534
9535
chunk := rawReport [i :end ]
9535
9536
9536
- appendIx , err := execution_buffer .NewAppendExecutionReportDataInstruction (bufferId , chunk , bufferPDA , transmitter .PublicKey (), solana .SystemProgramID ).ValidateAndBuild ()
9537
- require .NoError (t , err )
9537
+ appendIx , appendErr := execution_buffer .NewAppendExecutionReportDataInstruction (bufferID , chunk , bufferPDA , transmitter .PublicKey (), solana .SystemProgramID ).ValidateAndBuild ()
9538
+ require .NoError (t , appendErr )
9538
9539
testutils .SendAndConfirm (ctx , t , solanaGoClient , []solana.Instruction {appendIx }, transmitter , config .DefaultCommitment )
9539
9540
}
9540
9541
9541
9542
raw2 := execution_buffer .NewManuallyExecuteBufferedInstruction (
9542
- bufferId ,
9543
+ bufferID ,
9543
9544
[]byte {},
9544
9545
bufferPDA ,
9545
9546
config .OfframpConfigPDA ,
0 commit comments