Method: EvmClient::Formatter#to_ascii
- Defined in:
- lib/evm_client/formatter.rb
#to_ascii(hexstring) ⇒ Object
49 50 51 52 |
# File 'lib/evm_client/formatter.rb', line 49 def to_ascii(hexstring) return nil if hexstring.nil? hexstring.gsub(/^0x/,'').scan(/.{2}/).collect {|x| x.hex}.pack("c*") end |