Skip to content

Commit

Permalink
logging level
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <alexandros.filios@ibm.com>
  • Loading branch information
alexandrosfilios committed Sep 9, 2024
1 parent 396c3d7 commit 68ceffd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration/token/interop/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func htlcClaim(network *integration.Infrastructure, tmsID token.TMSID, id *token
}

func fastExchange(network *integration.Infrastructure, id *token3.NodeReference, recipient *token3.NodeReference, tmsID1 token.TMSID, typ1 string, amount1 uint64, tmsID2 token.TMSID, typ2 string, amount2 uint64, deadline time.Duration) {
txID, err := network.Client(id.ReplicaName()).CallView("htlc.fastExchange", common.JSONMarshall(&htlc.FastExchange{
res, err := network.Client(id.ReplicaName()).CallView("htlc.fastExchange", common.JSONMarshall(&htlc.FastExchange{
Recipient: network.Identity(recipient.Id()),
TMSID1: tmsID1,
Type1: typ1,
Expand All @@ -406,9 +406,10 @@ func fastExchange(network *integration.Infrastructure, id *token3.NodeReference,
ReclamationDeadline: deadline,
}))
Expect(err).NotTo(HaveOccurred())
txID := common.JSONUnmarshalString(res)
// give time to bob to commit the transaction
_, err = network.Client(recipient.ReplicaName()).CallView("TxFinality", common.JSONMarshall(&views3.TxFinality{
TxID: txID.(string),
TxID: txID,
TMSID: &tmsID2,
}))
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 68ceffd

Please sign in to comment.