Class: Etherlite::Types::Address

Inherits:
Base
  • Object
show all
Defined in:
lib/etherlite/types/address.rb

Instance Method Summary collapse

Methods inherited from Base

#dynamic?, #fixed?

Instance Method Details

#decode(_connection, _value) ⇒ Object



16
17
18
# File 'lib/etherlite/types/address.rb', line 16

def decode(_connection, _value)
  Etherlite::Address.new _connection, _value[24..-1].downcase
end

#encode(_value) ⇒ Object



11
12
13
14
# File 'lib/etherlite/types/address.rb', line 11

def encode(_value)
  _value = Etherlite::Utils.normalize_address_param _value
  _value.rjust(64, '0')
end

#signatureObject



3
4
5
# File 'lib/etherlite/types/address.rb', line 3

def signature
  "address" # not sure about this
end

#sizeObject



7
8
9
# File 'lib/etherlite/types/address.rb', line 7

def size
  32
end