lib/peatio/bitgo/wallet.rb in peatio-bitgo-2.6.1 vs lib/peatio/bitgo/wallet.rb in peatio-bitgo-2.6.2

- old
+ new

@@ -1,11 +1,14 @@ module Peatio module Bitgo class Wallet < Peatio::Wallet::Abstract TIME_DIFFERENCE_IN_MINUTES = 10 - def initialize(settings = {}) - @settings = settings + DEFAULT_FEATURES = { skip_deposit_collection: false }.freeze + + def initialize(custom_features = {}) + @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES) + @settings = {} end def configure(settings = {}) # Clean client state during configure. @client = nil