Class: ABI::Address

Inherits:
Type
  • Object
show all
Defined in:
lib/abicoder/types.rb

Instance Method Summary collapse

Methods inherited from Type

#dynamic?, parse

Instance Method Details

#==(another_type) ⇒ Object



43
# File 'lib/abicoder/types.rb', line 43

def ==(another_type)  another_type.kind_of?( Address ); end

#formatObject



42
# File 'lib/abicoder/types.rb', line 42

def format() 'address'; end

#sizeObject

note: address is always 20 bytes; BUT uses 32 bytes (with padding)



41
# File 'lib/abicoder/types.rb', line 41

def size() 32; end