match method

  1. @override
bool match(
  1. ScriptOp other
)
override

Returns true when the other ScriptOp matches this one. ScriptPushDataMatcher will match with a push data of a particular size.

Implementation

@override
bool match(ScriptOp other)
  => (other is ScriptPushData && bytesEqual(_data, other._data))
  || (other is ScriptPushDataMatcher && _data.length == other.size);