From 21f69192be81c2e02f082fcde92f4d26ed05dec1 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 27 Jun 2022 22:00:55 +0200 Subject: [PATCH] itest: rename too specific variables --- lntest/itest/lnd_taproot_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lntest/itest/lnd_taproot_test.go b/lntest/itest/lnd_taproot_test.go index 1d28248d0..40aed956f 100644 --- a/lntest/itest/lnd_taproot_test.go +++ b/lntest/itest/lnd_taproot_test.go @@ -1043,20 +1043,20 @@ func newAddrWithScript(ctx context.Context, t *testing.T, node *lntest.HarnessNode, addrType lnrpc.AddressType) (btcutil.Address, []byte) { - p2wkhResp, err := node.NewAddress(ctx, &lnrpc.NewAddressRequest{ + newAddrResp, err := node.NewAddress(ctx, &lnrpc.NewAddressRequest{ Type: addrType, }) require.NoError(t, err) - p2wkhAddr, err := btcutil.DecodeAddress( - p2wkhResp.Address, harnessNetParams, + addr, err := btcutil.DecodeAddress( + newAddrResp.Address, harnessNetParams, ) require.NoError(t, err) - p2wkhPkScript, err := txscript.PayToAddrScript(p2wkhAddr) + pkScript, err := txscript.PayToAddrScript(addr) require.NoError(t, err) - return p2wkhAddr, p2wkhPkScript + return addr, pkScript } // sendToTaprootOutput sends coins to a p2tr output of the given taproot key and