Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
m1guelpf committed Aug 28, 2024
1 parent c10c07a commit b3e9327
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
RUST_LOG="wld-usernames=debug"
WORLD_ID_APP_ID=""
ENS_DOMAIN=""
WORLD_ID_APP_ID=""
RESERVED_USERNAMES=""
ENS_SIGNER_PRIVATE_KEY=""
RUST_LOG="wld_usernames=debug"
BLOCKED_SUBSTRINGS="world,support,admin"
DATABASE_URL=postgres://postgres@localhost/usernames
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ static ENV_VARS: &[&str] = &[
"ENS_DOMAIN",
"DATABASE_URL",
"WORLD_ID_APP_ID",
"ENS_RESOLVER_SALT",
"RESERVED_USERNAMES",
"BLOCKED_SUBSTRINGS",
"ENS_RESOLVER_ADDRESS",
"ENS_SIGNER_PRIVATE_KEY",
];

Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/v1/ens_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn sign_response(
version: "1.0.0",
chain_id: 1,
verifying_contract: env::var("ENS_RESOLVER_ADDRESS").unwrap().parse().unwrap(),
salt: keccak256("my domain salt"),
salt: keccak256(env::var("ENS_RESOLVER_SALT").unwrap()),
};

let signature = signer
Expand Down

0 comments on commit b3e9327

Please sign in to comment.