Class: StellarSpectrum::GetCurrentSequenceNumber
- Inherits:
-
Object
- Object
- StellarSpectrum::GetCurrentSequenceNumber
- Defined in:
- lib/stellar_spectrum/services/get_current_sequence_number.rb
Class Method Summary collapse
Class Method Details
.execute(stellar_client:, channel_account:) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/stellar_spectrum/services/get_current_sequence_number.rb', line 4 def self.execute(stellar_client:, channel_account:) account_info = stellar_client.account_info(channel_account) account_info.sequence.to_i rescue Faraday::ClientError => e Log.warn("Retrying GetCurrentSequenceNumber - #{e.inspect}") execute(stellar_client: stellar_client, channel_account: channel_account) end |