From 8489db767101dd8201a982d2e5ed32776d62c08f Mon Sep 17 00:00:00 2001 From: cezary-stroczynski Date: Mon, 16 Dec 2024 13:56:56 +0100 Subject: [PATCH] Uncomment code in lib.rs --- owen/src/lib.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/owen/src/lib.rs b/owen/src/lib.rs index f559f3e..5709cc8 100644 --- a/owen/src/lib.rs +++ b/owen/src/lib.rs @@ -73,22 +73,22 @@ impl Config { pub async fn run(config: Config) -> Result<(), Box> { output_generator::create_output_files(&config).await?; - // let private_key_signer: PrivateKeySigner = config - // .private_key - // .parse() - // .expect("Failed to parse PRIVATE_KEY:"); - // let wallet = EthereumWallet::from(private_key_signer); + let private_key_signer: PrivateKeySigner = config + .private_key + .parse() + .expect("Failed to parse PRIVATE_KEY:"); + let wallet = EthereumWallet::from(private_key_signer); - // let provider = ProviderBuilder::new() - // .with_recommended_fillers() - // .wallet(wallet) - // .on_http(config.rpc_url.parse()?); + let provider = ProviderBuilder::new() + .with_recommended_fillers() + .wallet(wallet) + .on_http(config.rpc_url.parse()?); - // let ddex_sequencer_context = DdexSequencerContext::build(&provider).await?; - // let blob_transaction_data = BlobTransactionData::build()?; - // println!("sending tx..."); - // ddex_sequencer_context - // .send_blob(blob_transaction_data) - // .await?; + let ddex_sequencer_context = DdexSequencerContext::build(&provider).await?; + let blob_transaction_data = BlobTransactionData::build()?; + println!("sending tx..."); + ddex_sequencer_context + .send_blob(blob_transaction_data) + .await?; Ok(()) }