Skip to content

Commit 93a4559

Browse files
committed
fix(client/test): Remove unused argument in openSubChannel
Signed-off-by: Sophia Koehler <sophia@perun.network>
1 parent 8f6050c commit 93a4559

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

client/test/channel.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import (
2121
"math/big"
2222
"time"
2323

24-
"perun.network/go-perun/wallet"
25-
2624
"perun.network/go-perun/channel"
2725
"perun.network/go-perun/client"
2826
"perun.network/go-perun/log"
@@ -82,7 +80,6 @@ func (ch *paymentChannel) openSubChannel(
8280
cfg ExecConfig,
8381
initBals []*big.Int,
8482
app client.ProposalOpts,
85-
bID wallet.BackendID,
8683
) *paymentChannel {
8784
initAlloc := channel.Allocation{
8885
Assets: cfg.Asset(),

client/test/subchannel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (r *Susie) exec(_cfg ExecConfig, ledgerChannel *paymentChannel) {
7777

7878
// stage 2 - open subchannels
7979
openSubChannel := func(parentChannel *paymentChannel, funds []*big.Int, app client.ProposalOpts) *paymentChannel {
80-
return parentChannel.openSubChannel(rng, cfg, funds, app, cfg.backend[0])
80+
return parentChannel.openSubChannel(rng, cfg, funds, app)
8181
}
8282

8383
var subChannels []*paymentChannel

client/test/subchannel_dispute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (r *DisputeSusie) exec(_cfg ExecConfig, ledgerChannel *paymentChannel) {
5858
r.waitStage()
5959

6060
// Stage 2 - Open sub-channel.
61-
subChannel := ledgerChannel.openSubChannel(rng, cfg, cfg.SubChannelFunds[:], client.WithoutApp(), _cfg.Backend()[0])
61+
subChannel := ledgerChannel.openSubChannel(rng, cfg, cfg.SubChannelFunds[:], client.WithoutApp())
6262
subReq0 := client.NewTestChannel(subChannel.Channel).AdjudicatorReq() // Store AdjudicatorReq for version 0
6363
r.waitStage()
6464

0 commit comments

Comments
 (0)