Class: AbiCoderRb::Address

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

Instance Method Summary collapse

Methods inherited from Type

#dynamic?, parse

Instance Method Details

#==(other) ⇒ Object



47
48
49
# File 'lib/abi_coder_rb/types.rb', line 47

def ==(other)
  other.is_a?(Address)
end

#formatObject



43
44
45
# File 'lib/abi_coder_rb/types.rb', line 43

def format
  "address"
end

#sizeObject

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



39
40
41
# File 'lib/abi_coder_rb/types.rb', line 39

def size
  32
end