base/lib/stellar/concerns/transaction.rb
def to_operations
      codec = XDR::VarArray[Stellar::Operation]
      ops = respond_to?(:operations) ? operations : inner_tx.value.tx.operations
      cloned = codec.from_xdr(codec.to_xdr(ops))
      cloned.each do |op|
        op.source_account ||= source_account
      end
    end
#
# Extracts the operations from this single transaction,
# setting the source account on the extracted operations.
#
# Useful for merging transactions.
#
# @return [Array<Operation>] the operations
Extracts the operations from this single transaction,
setting the source account on the extracted operations.

Useful for merging transactions.
Extracts the operations from this single transaction setting the source account on the extracted operations . Useful for merging transactions .
def to_operations
      codec = XDR::VarArray[Stellar::Operation]
      ops = respond_to?(:operations) ? operations : inner_tx.value.tx.operations
      cloned = codec.from_xdr(codec.to_xdr(ops))
      cloned.each do |op|
        op.source_account ||= source_account
      end
    end
def to_operations codec = XDR :: VarArray [ Stellar :: Operation ] ops = respond_to? ( :operations ) ? operations : inner_tx . value . tx . operations cloned = codec . from_xdr ( codec . to_xdr ( ops ) ) cloned . each do | op | op . source_account ||= source_account end end
Extracts the operations from this single transaction,
setting the source account on the extracted operations.
Extracts the operations from this single transaction setting the source account on the extracted operations .
None
Array<Operation>