-
Notifications
You must be signed in to change notification settings - Fork 0
What is does a default representative for a wallet do?
Luke Duncalfe edited this page Apr 23, 2018
·
5 revisions
A wallet's default representative is the representative all new accounts created in the wallet will have. Changing the default representative for a wallet does not change the representatives for existing accounts in the wallet.
nanook = Nanook.new
wallet = nanook.wallet(wallet_id)
wallet.change_default_representative(new_representative)
To then also change all existing accounts in the wallet:
new_representative = wallet.default_representative
wallet.accounts.each { |a| a.change_representative(new_representative) }