class Ethereum::FastVM::Message

Attributes

code_address[RW]
data[RW]
depth[RW]
gas[RW]
is_create[RW]
logs[RW]
sender[RW]
to[RW]
value[RW]

Public Class Methods

new(sender, to, value, gas, data, depth:0, code_address:nil, is_create:false) click to toggle source
# File lib/ethereum/fast_vm/message.rb, line 9
def initialize(sender, to, value, gas, data, depth:0, code_address:nil, is_create:false)
  @sender = sender
  @to = to
  @value = value
  @gas = gas
  @data = data
  @depth = depth
  @logs = []
  @code_address = code_address
  @is_create = is_create
end

Public Instance Methods

inspect()
Alias for: to_s
to_s() click to toggle source
# File lib/ethereum/fast_vm/message.rb, line 21
def to_s
  "#<#{self.class.name}:#{object_id} to=#{@to[0,8]}>"
end
Also aliased as: inspect