Skip to content

Commit

Permalink
feat(sgx): add wallet to provider builder when register instance (#369)
Browse files Browse the repository at this point in the history
Co-authored-by: smtmfft <[email protected]>
  • Loading branch information
johntaiko and smtmfft authored Sep 15, 2024
1 parent e4a0a41 commit a250edf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provers/sgx/prover/src/sgx_register_utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloy_provider::{Provider, ProviderBuilder, RootProvider};
use alloy_provider::{network::EthereumWallet, Provider, ProviderBuilder, RootProvider};
use alloy_rpc_client::RpcClient;
use alloy_signer::Signer;
use alloy_signer_local::PrivateKeySigner;
Expand Down Expand Up @@ -276,6 +276,7 @@ pub async fn register_sgx_instance(
let http = Http::new(Url::parse(l1_rpc_url).expect("invalid rpc url"));
let provider = ProviderBuilder::new()
.with_recommended_fillers()
.wallet(EthereumWallet::from(wallet.clone()))
.on_provider(RootProvider::new(RpcClient::new(http, false)));
let sgx_verifier_contract = SgxVerifier::new(sgx_verifier_addr, &provider);

Expand Down

0 comments on commit a250edf

Please sign in to comment.