diff --git a/bchain/coins/btc/bitcoinparser.go b/bchain/coins/btc/bitcoinparser.go index eed0878c..c1b6a212 100644 --- a/bchain/coins/btc/bitcoinparser.go +++ b/bchain/coins/btc/bitcoinparser.go @@ -160,7 +160,7 @@ func (p *BitcoinParser) tryParseOmni(data []byte) string { // currently only simple send transaction version 0 is supported, see // https://github.com/OmniLayer/spec#transfer-coins-simple-send - if len(data) != 20 && data[0] != 'o' { + if len(data) != 20 || data[0] != 'o' { return "" } // omni (4) (2) (2)