Skip to content

Commit

Permalink
Fix: uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 1, 2021
1 parent 1378839 commit 1951d8f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/watch_tower/watch_tower.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ func (wt *WatchTower) redeem(swap *Swap) error {

swap.RetryCount++
switch swap.Initiator.ChainType {
// case chain.ChainTypeEthereum:
// return wt.ethereum.Redeem(swap.HashedSecret, swap.Secret, swap.Contract)
// case chain.ChainTypeTezos:
// return wt.tezos.Redeem(swap.HashedSecret, swap.Secret, swap.Contract)
case chain.ChainTypeEthereum:
return wt.ethereum.Redeem(swap.HashedSecret, swap.Secret, swap.Contract)
case chain.ChainTypeTezos:
return wt.tezos.Redeem(swap.HashedSecret, swap.Secret, swap.Contract)
default:
return errors.Errorf("unknown chain type: %v", swap.Initiator.ChainType)
}
Expand All @@ -291,10 +291,10 @@ func (wt *WatchTower) refund(swap *Swap) error {

swap.RetryCount++
switch swap.Initiator.ChainType {
// case chain.ChainTypeEthereum:
// return wt.ethereum.Refund(swap.HashedSecret, swap.Contract)
// case chain.ChainTypeTezos:
// return wt.tezos.Refund(swap.HashedSecret, swap.Contract)
case chain.ChainTypeEthereum:
return wt.ethereum.Refund(swap.HashedSecret, swap.Contract)
case chain.ChainTypeTezos:
return wt.tezos.Refund(swap.HashedSecret, swap.Contract)
default:
return errors.Errorf("unknown chain type: %v", swap.Initiator.ChainType)
}
Expand Down

0 comments on commit 1951d8f

Please sign in to comment.