-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #699 attempted to remove the startup-time dependency on the API by moving the point at which we get the chain ID to transaction creation time. However, this wasn't valid because the signer needs to be configured with the correct chain ID. Instead, we wrap our provider in a `tokio::sync::OnceCell` and lazily initialise it. This means the signer is initialised with the result of the call from `eth_chainId`, but we don't need to make this call until someone uses the faucet.
- Loading branch information
1 parent
f054882
commit 4107bb2
Showing
1 changed file
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters