Class: Runtime::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysol/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#numberObject

Returns the value of attribute number.



38
39
40
# File 'lib/rubysol/runtime.rb', line 38

def number
  @number
end

#timestampObject

Returns the value of attribute timestamp.



38
39
40
# File 'lib/rubysol/runtime.rb', line 38

def timestamp
  @timestamp
end

Instance Method Details

#blockhash(block_number) ⇒ Object

def initialize(current_transaction)

@current_transaction = current_transaction

end



44
45
46
47
48
49
50
51
52
53
# File 'lib/rubysol/runtime.rb', line 44

def blockhash( block_number )
  ##
  # unless @current_transaction.ethscription.block_number == block_number.value # TODO FIX
  #  raise "Not implemented"
  # end
  # 
  # @current_transaction.ethscription.block_blockhash

  # todo - check what ("dummy") to return here??
end