Skip to content

Conversation

@yzh-pelle
Copy link
Contributor

No description provided.

@yzh-pelle yzh-pelle marked this pull request as ready for review December 11, 2025 12:44
$this->useTestnet = (bool)$param[2];
break;
case 4:
$useDemo = (bool)$param[3];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yzh-pelle what if the user provides 3 args, (apiKey/secret/demo)?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right now to enable demo by default we would need to provide also testnet which is a bit weird, maybe we can replace testnet here with demo since testnet is deprecated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Third arg is for testnet. It is not python, args must be queued. We might add more examples for constructor

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right now to enable demo by default we would need to provide also testnet which is a bit weird, maybe we can replace testnet here with demo since testnet is deprecated

Yeah I was thinking about it. We may leave constructor as is, set default testnet url to demo and add method like useOldUrlForTestnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants