Method: EvmClient::Formatter#to_utf8
- Defined in:
- lib/evm_client/formatter.rb
#to_utf8(hexstring) ⇒ Object
54 55 56 57 |
# File 'lib/evm_client/formatter.rb', line 54 def to_utf8(hexstring) return nil if hexstring.nil? hexstring.gsub(/^0x/,'').scan(/.{2}/).collect {|x| x.hex}.pack("U*").delete("\u0000") end |