Skip to content

fix: unexpected INFO message when create an Account without Paymaster#1605

Open
PhilippeR26 wants to merge 1 commit intostarknet-io:developfrom
PhilippeR26:fixAccountCreationAlert
Open

fix: unexpected INFO message when create an Account without Paymaster#1605
PhilippeR26 wants to merge 1 commit intostarknet-io:developfrom
PhilippeR26:fixAccountCreationAlert

Conversation

@PhilippeR26
Copy link
Copy Markdown
Collaborator

Motivation and Resolution

When creating an Account instance with :

const account0 = new Account({ provider: myProvider, address: accountAddress0, signer: privateKey0 });

(so, without paymaster option)

We have this log:

[2026-04-22T13:27:33.268Z] INFO: Using default public node url, please provide nodeUrl in provider options!

In fact, the Account constructor is calling new PaymasterRpc() if no paymaster option. It generates this INFO message about default paymaster url

Usage related changes

None

Development related changes

  • In the Paymaster constructor, the options includes now a new mute?: booleanoption, that is used by the constructor of Account, to avoid the info message.
  • In PaymasterRpcOptions, the default option is removed (useless).

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Documented the changes in code (API docs will be generated automatically)
  • All tests are passing

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.

1 participant