Class: Universa::TransactionPack

Inherits:
RemoteAdapter show all
Defined in:
lib/universa/contract.rb

Overview

adapter for Universa TransactionPack

Class Method Summary collapse

Methods inherited from RemoteAdapter

#__getobj__, #__setobj__, #initialize, #inspect, invoke_static, remote_class, remote_class_name, remote_field, static_method, #to_s

Constructor Details

This class inherits a constructor from Universa::RemoteAdapter

Class Method Details

.unpack(packed_transaction) ⇒ TransactionPack

Unpack the transaction pack

Returns:



140
141
142
143
# File 'lib/universa/contract.rb', line 140

def self.unpack(packed_transaction)
  packed_transaction.force_encoding('binary')
  invoke_static 'unpack', packed_transaction
end