Open extra topbar

Is there a way to solve the error when..

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

Is there a way to solve the error when..

dashed-slug.net Forums TurtleCoin Adapter extension support Is there a way to solve the error when..

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9895
    LeinAd
    Participant

    adding more than one xyz coin?
    Fatal error: Cannot redeclare wallets_turtlecoin_adapter_filter() (previously declared in /var/www/html/wordpress/wp-content/plugins/wrkz.php:12)

    #9904
    alexg
    Keymaster

    You should not define the same function twice.

    Either use the same function to define all your coins, like so:

    function wallets_turtlecoin_adapter_filter( $coins ) {
    
    	$coins['ABC'] = array(
    		// ABC coin attributes go here
    	);
    
    	$coins['XYZ'] = array(
    		// XYZ coin attributes go here
    	);
    
    	return $coins;
    }
    add_filter( 'wallets_turtle_coins', 'wallets_turtlecoin_adapter_filter' );

    Or if you want to keep things separate, like in different files for example, then you can hook two or more functions to the filter:

    function wallets_turtlecoin_adapter_filter_abc( $coins ) {
    
    	$coins['ABC'] = array(
    		// ABC coin attributes go here
    	);
    
    	return $coins;
    }
    add_filter( 'wallets_turtle_coins', 'wallets_turtlecoin_adapter_filter_abc' );
    function wallets_turtlecoin_adapter_filter_xyz( $coins ) {
    
    	$coins['XYZ'] = array(
    		// XYZ coin attributes go here
    	);
    
    	return $coins;
    }
    add_filter( 'wallets_turtle_coins', 'wallets_turtlecoin_adapter_filter_xyz' );

    You’ll be glad to know that in wallets6 you won’t be required to know any PHP. I have developed UIs for all of this.

    with regards

    #9905
    LeinAd
    Participant

    will it easy to migrate the existing wallets then?

    #9911
    alexg
    Keymaster

    Hello,

    The new plugin will automatically migrate the deposit addresses and transactions (and therefore balances) to the new format. There will be an extensive article detailing how this works. You will not have to do anything for this, other than ensure that the cron jobs are running.

    Connection to the wallets will not be migrated automatically, you will need to create wallets and currencies. This will be detailed in the installation instructions and via WordPress admin pointers. It will be easy, and if you have any questions about it you can post in the new migration support forum.

    You will be able to perform these changes at any time, and you can safely revert to the previous version if any issue arises.

    If you have any more questions about this, please post them at the migration support forum.

    with regards

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.