Method: EvmClient::Formatter#from_address

Defined in:
lib/evm_client/formatter.rb

#from_address(address) ⇒ Object



84
85
86
87
# File 'lib/evm_client/formatter.rb', line 84

def from_address(address)
  return "0x0000000000000000000000000000000000000000" if address.nil?
  address.gsub(/^0x/,'').rjust(64, "0")
end