Method: EvmClient::Formatter#to_address

Defined in:
lib/evm_client/formatter.rb

#to_address(hexstring) ⇒ Object



69
70
71
72
# File 'lib/evm_client/formatter.rb', line 69

def to_address(hexstring)
  return "0x0000000000000000000000000000000000000000" if hexstring.nil?
  "0x" + hexstring[-40..-1]
end