Skip to content

Commit 70efe6f

Browse files
committed
chore(payment-channel-xlm): remove local bus
Signed-off-by: Minh Huy Tran <[email protected]>
1 parent a2484af commit 70efe6f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Internet Computer SDK
2727
uses: dfinity/setup-dfx@main
2828
with:
29-
dfx-version: 0.25.1
29+
dfx-version: 0.24.0
3030

3131
- name: Build Stellar Devchain Image
3232
working-directory: payment-channel-xlm

payment-channel-xlm/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func SetupPaymentClient(
4848
wireAddr wire.Address,
4949

5050
stellarTokenIDs []channel.Asset,
51-
bus *wire.LocalBus,
51+
bus wire.Bus,
5252
funder channel.Funder,
5353
adj channel.Adjudicator,
5454
) (*PaymentClient, error) {

payment-channel-xlm/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func payment_example(setup *util.Setup) {
5656
adjBob := setup.GetAdjudicators()[1]
5757

5858
log.Println("Initializing a connection between Alice and Bob")
59-
bus := wire.NewLocalBus()
6059

6160
aliceWireAcc := p2p.NewRandomAccount(rand.New(rand.NewSource(time.Now().UnixNano())))
6261
aliceNet, err := p2p.NewP2PBus(types.StellarBackendID, aliceWireAcc)
@@ -79,11 +78,11 @@ func payment_example(setup *util.Setup) {
7978
aliceNet.Dialer.Register(map[wallet.BackendID]wire.Address{types.StellarBackendID: bobWireAcc.Address()}, bobWireAcc.ID().String())
8079

8180
log.Println("Setup payment clients for Alice and Bob")
82-
alicePerun, err := client.SetupPaymentClient(wAlice, accAlice, aliceWireAcc.Address(), setup.GetTokenAsset(), bus, funderAlice, adjAlice)
81+
alicePerun, err := client.SetupPaymentClient(wAlice, accAlice, aliceWireAcc.Address(), setup.GetTokenAsset(), aliceBus, funderAlice, adjAlice)
8382
if err != nil {
8483
panic(err)
8584
}
86-
bobPerun, err := client.SetupPaymentClient(wBob, accBob, bobWireAcc.Address(), setup.GetTokenAsset(), bus, funderBob, adjBob)
85+
bobPerun, err := client.SetupPaymentClient(wBob, accBob, bobWireAcc.Address(), setup.GetTokenAsset(), bobBus, funderBob, adjBob)
8786
if err != nil {
8887
panic(err)
8988
}

0 commit comments

Comments
 (0)