I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Add two coins to full-node-multi-coin-adapter-extension

dashed-slug.net Forums General discussion Add two coins to full-node-multi-coin-adapter-extension Reply To: Add two coins to full-node-multi-coin-adapter-extension

#6963
alexg
Keymaster

Hello,

Glad you found the solution.

For the benefit of others reading this:

The simplest solution would be to name your functions using unique names, for example:

function wallets_multiadapter_coins_filter_coin1( $coins ) {
    $coins['COIN1'] = array(
    
    ...etc...
}

add_filter( 'wallets_multiadapter_coins', 'wallets_multiadapter_coins_filter_coin1' );

…and…

function wallets_multiadapter_coins_filter_coin2( $coins ) {
    $coins['COIN2'] = array(

    ...etc...
}
add_filter( 'wallets_multiadapter_coins', 'wallets_multiadapter_coins_filter_coin2' );

with regards