Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
heemankv committed Dec 4, 2024
1 parent fc92c99 commit c1e3fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions crates/orchestrator/src/queue/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ impl<'de> Deserialize<'de> for WorkerTriggerMessage {
struct Helper {
worker: String,
}

let helper = Helper::deserialize(deserializer)?;
println!("Message received from Worker Trigger Queue: {:?}", helper);
Ok(WorkerTriggerMessage {
worker: WorkerTriggerType::from_str(&helper.worker).map_err(serde::de::Error::custom)?,
})
Expand Down
10 changes: 4 additions & 6 deletions scripts/init_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ const { v4 } = require("uuid");

// using default anvil key which has funds
const MADARA_ORCHESTRATOR_ETHEREUM_PRIVATE_KEY =
"0xa26de79601ae771b9cdedd6d110f066dcc76e77274c1699d39";
const eth_provider = new ethers.JsonRpcProvider(
"https://eth-sepolia.g.alchemy.com/v2/svwTUduh3Uutn-0-UzsM9ee6q",
);
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
const eth_provider = new ethers.JsonRpcProvider("http://localhost:8545");
const wallet = new ethers.Wallet(
MADARA_ORCHESTRATOR_ETHEREUM_PRIVATE_KEY,
eth_provider,
);

const starknet_provider = new starknet.RpcProvider({
nodeUrl: "https://madara-testing.karnot.xyz/",
nodeUrl: "http://localhost:9944",
});
// TODO: fetch these from bootstrapper output
const ETHEREUM_APP_CHAIN_ADDRESS =
Expand Down Expand Up @@ -854,4 +852,4 @@ async function main() {
await setupMongoDb(block_number - 1);
}

overrideStateOnCoreContract(0, "0xdf1b0c727a66da2bf7652f449e765e2cf4e7a023");
main();

0 comments on commit c1e3fe0

Please sign in to comment.