Skip to content

Commit 0f81e47

Browse files
committed
itest: remove unused return value from sendProof
1 parent 3dae4bb commit 0f81e47

File tree

3 files changed

+22
-25
lines changed

3 files changed

+22
-25
lines changed

itest/addrs_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/lightninglabs/taproot-assets/taprpc"
1919
wrpc "github.com/lightninglabs/taproot-assets/taprpc/assetwalletrpc"
2020
"github.com/lightninglabs/taproot-assets/taprpc/mintrpc"
21-
"github.com/lightninglabs/taproot-assets/taprpc/tapdevrpc"
2221
unirpc "github.com/lightninglabs/taproot-assets/taprpc/universerpc"
2322
"github.com/lightninglabs/taproot-assets/universe"
2423
"github.com/lightningnetwork/lnd/lntest/wait"
@@ -843,12 +842,10 @@ func testUnknownTlvType(t *harnessTest) {
843842
// using the development only ImportProof RPC on the destination node.
844843
func sendProof(t *harnessTest, src, dst *tapdHarness,
845844
sendResp *taprpc.SendAssetResponse, scriptKey []byte,
846-
genInfo *taprpc.GenesisInfo) *tapdevrpc.ImportProofResponse {
845+
genInfo *taprpc.GenesisInfo) {
847846

848847
proofResp := exportProof(t, src, sendResp, scriptKey, genInfo)
849-
return ImportProofFile(
850-
t, dst, proofResp.RawProofFile, genInfo.GenesisPoint,
851-
)
848+
ImportProofFile(t, dst, proofResp.RawProofFile, genInfo.GenesisPoint)
852849
}
853850

854851
// exportProof manually exports a proof from the given source node for a

itest/multi_send_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,17 @@ func testAnchorMultipleVirtualTransactions(t *harnessTest) {
266266

267267
// This is an interactive transfer, so we do need to manually send the
268268
// proofs from the sender to the receiver.
269-
_ = sendProof(
269+
sendProof(
270270
t, aliceTapd, bobTapd, sendResp,
271271
scriptKeys[0].PubKey.SerializeCompressed(),
272272
assetXTranche1.AssetGenesis,
273273
)
274-
_ = sendProof(
274+
sendProof(
275275
t, aliceTapd, bobTapd, sendResp,
276276
scriptKeys[1].PubKey.SerializeCompressed(),
277277
assetXTranche2.AssetGenesis,
278278
)
279-
_ = sendProof(
279+
sendProof(
280280
t, aliceTapd, bobTapd, sendResp,
281281
scriptKeys[2].PubKey.SerializeCompressed(),
282282
assetXTranche3.AssetGenesis,

itest/psbt_test.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,12 @@ func testPsbtMultiVersionSend(t *harnessTest) {
513513

514514
// This is an interactive transfer, so we do need to manually send the
515515
// proofs from the sender to the receiver.
516-
_ = sendProof(
516+
sendProof(
517517
t, sender, receiver, send1Resp,
518518
receiverScriptKey1.PubKey.SerializeCompressed(),
519519
firstAsset.AssetGenesis,
520520
)
521-
_ = sendProof(
521+
sendProof(
522522
t, sender, receiver, send2Resp,
523523
receiverScriptKey2.PubKey.SerializeCompressed(),
524524
secondAsset.AssetGenesis,
@@ -650,7 +650,7 @@ func runPsbtInteractiveFullValueSendTest(ctxt context.Context, t *harnessTest,
650650

651651
// This is an interactive transfer, so we do need to manually
652652
// send the proof from the sender to the receiver.
653-
_ = sendProof(
653+
sendProof(
654654
t, sender, receiver, sendResp, receiverScriptKeyBytes,
655655
genInfo,
656656
)
@@ -877,7 +877,7 @@ func runPsbtInteractiveSplitSendTest(ctxt context.Context, t *harnessTest,
877877

878878
// This is an interactive transfer, so we do need to manually
879879
// send the proof from the sender to the receiver.
880-
_ = sendProof(
880+
sendProof(
881881
t, sender, receiver, sendResp, receiverScriptKeyBytes,
882882
genInfo,
883883
)
@@ -1114,11 +1114,11 @@ func testPsbtInteractiveAltLeafAnchoring(t *harnessTest) {
11141114

11151115
// This is an interactive transfer, so we do need to manually send the
11161116
// proofs from the sender to the receiver.
1117-
_ = sendProof(
1117+
sendProof(
11181118
t, sender, receiver, publishResp, receiverScriptKey1Bytes,
11191119
genInfo,
11201120
)
1121-
_ = sendProof(
1121+
sendProof(
11221122
t, sender, receiver, publishResp, receiverScriptKey2Bytes,
11231123
genInfo,
11241124
)
@@ -1220,7 +1220,7 @@ func testPsbtInteractiveTapscriptSibling(t *harnessTest) {
12201220

12211221
// This is an interactive transfer, so we do need to manually send the
12221222
// proof from the sender to the receiver.
1223-
_ = sendProof(
1223+
sendProof(
12241224
t, alice, bob, sendResp,
12251225
receiverScriptKey.PubKey.SerializeCompressed(), genInfo,
12261226
)
@@ -1394,10 +1394,10 @@ func testPsbtMultiSend(t *harnessTest) {
13941394

13951395
// This is an interactive transfer, so we do need to manually send the
13961396
// proof from the sender to the receiver.
1397-
_ = sendProof(
1397+
sendProof(
13981398
t, sender, receiver, sendResp, scriptKey1Bytes, genInfo,
13991399
)
1400-
_ = sendProof(
1400+
sendProof(
14011401
t, sender, receiver, sendResp,
14021402
receiverScriptKey2.PubKey.SerializeCompressed(), genInfo,
14031403
)
@@ -1638,7 +1638,7 @@ func testMultiInputPsbtSingleAssetID(t *harnessTest) {
16381638

16391639
// This is an interactive transfer. Therefore, we will manually transfer
16401640
// the proof from the sender to the receiver.
1641-
_ = sendProof(
1641+
sendProof(
16421642
t, secondaryTapd, primaryTapd, sendResp,
16431643
primaryNodeScriptKey.PubKey.SerializeCompressed(), genInfo,
16441644
)
@@ -1713,7 +1713,7 @@ func testMultiInputPsbtSingleAssetID(t *harnessTest) {
17131713

17141714
// This is an interactive transfer. Therefore, we will manually transfer
17151715
// the proof from the sender to the receiver.
1716-
_ = sendProof(
1716+
sendProof(
17171717
t, secondaryTapd, primaryTapd, sendResp,
17181718
primaryNodeScriptKey.PubKey.SerializeCompressed(), genInfo,
17191719
)
@@ -1900,7 +1900,7 @@ func testPsbtSighashNone(t *harnessTest) {
19001900
// This is an interactive/PSBT based transfer, so we do need to manually
19011901
// send the proof from the sender to the receiver because the proof
19021902
// courier address gets lost in the address->PSBT conversion.
1903-
_ = sendProof(t, bob, alice, sendResp, aliceAddr.ScriptKey, genInfo)
1903+
sendProof(t, bob, alice, sendResp, aliceAddr.ScriptKey, genInfo)
19041904

19051905
// If Bob was successful in his attempt to edit the outputs, Alice
19061906
// should see an asset with an amount of 399.
@@ -2716,7 +2716,7 @@ func testPsbtLockTimeSend(t *harnessTest) {
27162716

27172717
// This is an interactive transfer, so we do need to manually
27182718
// send the proof from the sender to the receiver.
2719-
_ = sendProof(
2719+
sendProof(
27202720
t, alice, bob, sendResp,
27212721
bobAssetScriptKey.PubKey.SerializeCompressed(), genInfo,
27222722
)
@@ -2804,7 +2804,7 @@ func testPsbtLockTimeSend(t *harnessTest) {
28042804

28052805
// This is an interactive transfer, so we do need to manually
28062806
// send the proof from the sender to the receiver.
2807-
_ = sendProof(
2807+
sendProof(
28082808
t, bob, alice, sendRespSpend,
28092809
aliceScriptKey.PubKey.SerializeCompressed(), genInfo,
28102810
)
@@ -2924,7 +2924,7 @@ func testPsbtRelativeLockTimeSend(t *harnessTest) {
29242924

29252925
// This is an interactive transfer, so we do need to manually
29262926
// send the proof from the sender to the receiver.
2927-
_ = sendProof(
2927+
sendProof(
29282928
t, alice, bob, sendResp,
29292929
bobAssetScriptKey.PubKey.SerializeCompressed(), genInfo,
29302930
)
@@ -3011,7 +3011,7 @@ func testPsbtRelativeLockTimeSend(t *harnessTest) {
30113011

30123012
// This is an interactive transfer, so we do need to manually
30133013
// send the proof from the sender to the receiver.
3014-
_ = sendProof(
3014+
sendProof(
30153015
t, bob, alice, sendRespSpend,
30163016
aliceScriptKey.PubKey.SerializeCompressed(), genInfo,
30173017
)
@@ -3133,7 +3133,7 @@ func testPsbtRelativeLockTimeSendProofFail(t *harnessTest) {
31333133

31343134
// This is an interactive transfer, so we do need to manually
31353135
// send the proof from the sender to the receiver.
3136-
_ = sendProof(
3136+
sendProof(
31373137
t, alice, bob, sendResp,
31383138
bobAssetScriptKey.PubKey.SerializeCompressed(), genInfo,
31393139
)

0 commit comments

Comments
 (0)