-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth_chainId request sent to paymaster url instead of bundler #1152
Comments
The Kit was created in a way that can be used with any provider. Pimlico is provided as default but can be changed for any other custom implementation. When using the A consideration that needs to be done is that we are about to release a new major version which will change the IFeeEstimator interface. |
Couldn't a generic estimator be written using more standard methods like |
@mholtzman take a look #1153 |
Hey!, If you pass an empty estimator to the
Anyway, if this don't work, ideally you should implement your own one for another provider. Taking the |
I assume you're developing the latest version of safe-core-sdk using pimlico.
Unfortunately this makes the library not compatible with many other providers.
PimlicoFeeEstimator at line 927 uses the paymasterClient to get the chain id. This fails using another provider (for example Candide).
A simple solution would be to retrieve the chain id using a bundlerClient
const bundlerClient = createBundlerClient(
bundlerUrl
);
const chainId = await this.#getChainId(bundlerClient);
With this change only it's possible to use Pimlico as bundler and Candide (or any other provider) as paymaster.
Ideally there should be a generic fee estimator that does not use pimlico_getUserOperationGasPrice but retrieve maxFeePerGas and maxPriorityFeePerGas from any other source
The text was updated successfully, but these errors were encountered: