Skip to content

Commit

Permalink
debug(watcher): add log when decoding address
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed May 13, 2021
1 parent d755883 commit 7343c07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ func (watcher Watcher) burnToParams(txid pack.Bytes, amount pack.U256, toBytes [
decoder := AddressEncodeDecoder(watcher.selector.Asset().OriginChain(), watcher.network)
_, err := decoder.DecodeAddress(multichain.Address(to))
if err != nil {
watcher.logger.Warnf("decoding address: %v", err)
to = base58.Encode(toBytes)
_, err = decoder.DecodeAddress(multichain.Address(to))
if err != nil {
Expand Down

0 comments on commit 7343c07

Please sign in to comment.