@@ -939,6 +939,7 @@ func MakeEVMExtraArgsV2(gasLimit uint64, allowOOO bool) []byte {
939939func AddLane (
940940 t * testing.T ,
941941 e * DeployedEnv ,
942+ state stateview.CCIPOnChainState ,
942943 from , to uint64 ,
943944 isTestRouter bool ,
944945 gasPrices map [uint64 ]* big.Int ,
@@ -968,7 +969,11 @@ func AddLane(
968969 }
969970 changesets = append (changesets , AddLaneAptosChangesets (t , from , to , gasPrices , aptosTokenPrices )... )
970971 case chainsel .FamilyTon :
971- addLaneConfig := tonOps .AddLaneTONConfig (& e .Env , from , to , fromFamily , toFamily , gasPrices )
972+ onRamp , err := state .GetOnRampAddressBytes (to )
973+ if err != nil {
974+ return err
975+ }
976+ addLaneConfig := tonOps .AddLaneTONConfig (& e .Env , onRamp , from , to , fromFamily , toFamily , gasPrices )
972977 changesets = append (changesets , commoncs .Configure (tonOps.AddTonLanes {},
973978 tonCfg.UpdateTonLanesConfig {
974979 Lanes : []tonCfg.LaneConfig {addLaneConfig },
@@ -984,7 +989,11 @@ func AddLane(
984989 case chainsel .FamilyAptos :
985990 changesets = append (changesets , AddLaneAptosChangesets (t , from , to , gasPrices , nil )... )
986991 case chainsel .FamilyTon :
987- addLaneConfig := tonOps .AddLaneTONConfig (& e .Env , from , to , fromFamily , toFamily , gasPrices )
992+ onRamp , err := state .GetOnRampAddressBytes (to )
993+ if err != nil {
994+ return err
995+ }
996+ addLaneConfig := tonOps .AddLaneTONConfig (& e .Env , onRamp , from , to , fromFamily , toFamily , gasPrices )
988997 changesets = append (changesets , commoncs .Configure (tonOps.AddTonLanes {},
989998 tonCfg.UpdateTonLanesConfig {
990999 Lanes : []tonCfg.LaneConfig {addLaneConfig },
@@ -1354,6 +1363,7 @@ func AddLaneWithDefaultPricesAndFeeQuoterConfig(t *testing.T, e *DeployedEnv, st
13541363 err = AddLane (
13551364 t ,
13561365 e ,
1366+ state ,
13571367 from , to ,
13581368 isTestRouter ,
13591369 gasPrices ,
@@ -1391,6 +1401,7 @@ func AddLaneWithEnforceOutOfOrder(t *testing.T, e *DeployedEnv, state stateview.
13911401 AddLane (
13921402 t ,
13931403 e ,
1404+ state ,
13941405 from , to ,
13951406 isTestRouter ,
13961407 gasPrices ,
0 commit comments