Sha256: 85e35b0f5abc10b389ad459071e4ed4134207a06731ef2543bbf3edb8366e331

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

module Stellar
  class FeeBumpTransaction
    include Stellar::Concerns::Transaction

    def to_envelope(*key_pairs)
      signatures = (key_pairs || []).map(&method(:sign_decorated))

      TransactionEnvelope.fee_bump(signatures: signatures, tx: self)
    end

    def signature_base_prefix
      val = Stellar::EnvelopeType.envelope_type_tx_v0

      Stellar.current_network_id + Stellar::EnvelopeType.to_xdr(val)
    end

    def source_account
      source_account_ed25519
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.23.0.pre1 lib/stellar/fee_bump_transaction.rb