vector icon indicating copy to clipboard operation
vector copied to clipboard

[contracts] Sanitize ethService for 3rd party use

Open LayneHaber opened this issue 4 years ago • 0 comments

Describe the bug ethService is not usable by third parties (i.e. watchtowers), and should be updated to be friendlier to users outside of the channel.

For instance in sendDepositTx:

    if (channelState.alice !== sender && channelState.bob !== sender) {
      return Result.fail(new ChainError(ChainError.reasons.SenderNotInChannel));
    }

LayneHaber avatar Feb 17 '21 23:02 LayneHaber