Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mb1896 committed Mar 15, 2024
1 parent df4bd5d commit 0c28e79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const config: HardhatUserConfig = {
timeout: 1000000,
},
localnet: {
chainId: 31415926,
chainId: 31337,
url: process.env.RPC_URL!,
accounts: [process.env.PRIVATE_KEY!],
},
Expand Down
8 changes: 4 additions & 4 deletions ipc/provider/src/manager/evm/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,19 +820,19 @@ impl SubnetManager for EthSubnetManager {
let addresses: Vec<ethers::core::types::Address> = validators.iter().map(
|validator_address| payload_to_evm_address(validator_address.payload()).unwrap()
).collect();
log::info!("converted addresses {:?}:", addresses);
log::debug!("converted addresses {:?}:", addresses);

let pubkeys: Vec<ethers::core::types::Bytes> = public_keys.iter().map(
|key| ethers::core::types::Bytes::from(key.clone())
).collect();
log::info!("converted pubkeys {:?}:", pubkeys);
log::debug!("converted pubkeys {:?}:", pubkeys);

let power_u256: Vec<ethers::core::types::U256> = federated_power.iter().map(
|power| ethers::core::types::U256::from(*power)
).collect();
log::info!("converted power {:?}:", power_u256);
log::debug!("converted power {:?}:", power_u256);

log::info!("from address {:?}:", from);
log::debug!("from address {:?}:", from);

let signer = Arc::new(self.get_signer(from)?);
let call = contract.set_federated_power(addresses, pubkeys, power_u256);
Expand Down

0 comments on commit 0c28e79

Please sign in to comment.