@@ -483,10 +483,10 @@ func clnclnElementsSetup(t *testing.T, fundAmt uint64) (*testframework.BitcoinNo
483483
484484 // Give liquid funds to nodes to have something to swap.
485485 for _ , lightningd := range lightningds {
486- var result clightning .GetAddressResponse
486+ var result peerswaprpc .GetAddressResponse
487487 lightningd .Rpc .Request (& clightning.LiquidGetAddress {}, & result )
488488 _ = liquidd .GenerateBlocks (20 )
489- _ , err = liquidd .Rpc .Call ("sendtoaddress" , result .LiquidAddress , 10. , "" , "" , false , false , 1 , "UNSET" )
489+ _ , err = liquidd .Rpc .Call ("sendtoaddress" , result .Address , 10. , "" , "" , false , false , 1 , "UNSET" )
490490 require .NoError (t , err )
491491 }
492492
@@ -775,10 +775,10 @@ func mixedElementsSetup(t *testing.T, fundAmt uint64, funder fundingNode) (*test
775775 }
776776
777777 // Give liquid funds to nodes to have something to swap.
778- var lar clightning .GetAddressResponse
778+ var lar peerswaprpc .GetAddressResponse
779779 cln .Rpc .Request (& clightning.LiquidGetAddress {}, & lar )
780780 _ = liquidd .GenerateBlocks (20 )
781- _ , err = liquidd .Rpc .Call ("sendtoaddress" , lar .LiquidAddress , 10. , "" , "" , false , false , 1 , "UNSET" )
781+ _ , err = liquidd .Rpc .Call ("sendtoaddress" , lar .Address , 10. , "" , "" , false , false , 1 , "UNSET" )
782782 require .NoError (t , err )
783783
784784 r , err := peerswapd .PeerswapClient .LiquidGetAddress (context .Background (), & peerswaprpc.GetAddressRequest {})
@@ -819,12 +819,12 @@ type CLightningNodeWithLiquid struct {
819819}
820820
821821func (n * CLightningNodeWithLiquid ) GetBtcBalanceSat () (uint64 , error ) {
822- var response clightning .GetBalanceResponse
822+ var response peerswaprpc .GetBalanceResponse
823823 err := n .Rpc .Request (& clightning.LiquidGetBalance {}, & response )
824824 if err != nil {
825825 return 0 , err
826826 }
827- return response .LiquidBalance , nil
827+ return response .GetSatAmount () , nil
828828}
829829
830830type LndNodeWithLiquid struct {
0 commit comments