Class: Runtime::Block
- Inherits:
-
Object
- Object
- Runtime::Block
- Defined in:
- lib/rubysol/runtime.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#blockhash(block_number) ⇒ Object
def initialize(current_transaction) @current_transaction = current_transaction end.
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
38 39 40 |
# File 'lib/rubysol/runtime.rb', line 38 def number @number end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
38 39 40 |
# File 'lib/rubysol/runtime.rb', line 38 def @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 |