lib/zold/node/spread_entrance.rb in zold-0.13.46 vs lib/zold/node/spread_entrance.rb in zold-0.14.0

- old
+ new

@@ -39,10 +39,10 @@ class SpreadEntrance def initialize(entrance, wallets, remotes, address, log: Log::Quiet.new, ignore_score_weakeness: false) raise 'Entrance can\'t be nil' if entrance.nil? @entrance = entrance raise 'Wallets can\'t be nil' if wallets.nil? - raise 'Wallets must be of type Wallets' unless wallets.is_a?(Wallets) + raise 'Wallets must implement the contract of Wallets: method #find is required' unless wallets.respond_to?(:find) @wallets = wallets raise 'Remotes can\'t be nil' if remotes.nil? raise 'Remotes must be of type Remotes' unless remotes.is_a?(Remotes) @remotes = remotes raise 'Address can\'t be nil' if address.nil?