mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-23 16:43:24 +03:00
simulation-mode compiling
This commit is contained in:
parent
8a5eae4f22
commit
3fff94c57e
@ -1,3 +1,6 @@
|
||||
use crate::fakenet::helpers::RegisterHelpers::{
|
||||
ipCall, multicallCall, ownerOfCall, registerCall, setAllIpCall, setKeyCall,
|
||||
};
|
||||
use crate::{keygen, KNS_ADDRESS};
|
||||
use alloy::network::{eip2718::Encodable2718, EthereumWallet, TransactionBuilder};
|
||||
use alloy::providers::{Provider, ProviderBuilder, RootProvider};
|
||||
@ -10,7 +13,7 @@ use alloy_sol_types::{SolCall, SolValue};
|
||||
use lib::core::{Identity, NodeRouting};
|
||||
use std::str::FromStr;
|
||||
|
||||
mod helpers;
|
||||
pub mod helpers;
|
||||
|
||||
const FAKE_DOTDEV: &str = "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9";
|
||||
|
||||
@ -39,8 +42,8 @@ pub async fn register_local(
|
||||
|
||||
let provider: RootProvider<PubSubFrontend> = ProviderBuilder::default().on_ws(ws).await?;
|
||||
|
||||
let fqdn = dns_encode_fqdn(name);
|
||||
let namehash = encode_namehash(name);
|
||||
let fqdn = helpers::dns_encode_fqdn(name);
|
||||
let namehash = helpers::encode_namehash(name);
|
||||
// todo: find a better way?
|
||||
let namehash_bint: B256 = namehash.into();
|
||||
let namehash_uint: U256 = namehash_bint.into();
|
||||
|
Loading…
Reference in New Issue
Block a user