Method: Calldata.decode
- Defined in:
- lib/calldata.rb
.decode(hex) ⇒ Object Also known as: decode_hex
70 71 72 73 74 75 |
# File 'lib/calldata.rb', line 70 def self.decode( hex ) raise TypeError, "Calldata.decode - String expected; got #{hex.inspect} : #{hex.class.name}" unless hex.is_a?( String ) ## todo/check - add a regex/format check here - why? why not? ## must be string and hexchars only (0x/0X) hex_to_utf8( hex ) end |