lib/zold/commands/routines/spread.rb in zold-0.14.48 vs lib/zold/commands/routines/spread.rb in zold-0.14.49
- old
+ new
@@ -47,10 +47,10 @@
else
sleep(60)
end
ids = @wallets.all.sample(10)
Push.new(wallets: @wallets, remotes: @remotes, log: @log).run(
- ['push', "--network=#{@opts['network']}"] + ids
+ ['push', "--network=#{@opts['network']}"] + ids.map(&:to_s)
)
if ids.empty?
@log.info("Spread didn't push any wallets, we are empty")
else
@log.info("Spread #{ids.count} random wallets out of #{@wallets.all.count}: #{ids.join(', ')}")