Skip to content

Commit

Permalink
chore: misc minor
Browse files Browse the repository at this point in the history
  • Loading branch information
8e8b2c committed Jul 15, 2024
1 parent 34b11a6 commit 4489226
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ pub fn validate_create_evm_signing_offer(
_action: EntryCreationAction,
_evm_signing_offer: EvmSigningOffer,
) -> ExternResult<ValidateCallbackResult> {
// TODO: check recipe exists
Ok(ValidateCallbackResult::Valid)
}
1 change: 1 addition & 0 deletions docker/evm-bytes-signer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ ENV HOLOCHAIN_ADMIN_WS_PORT=
ENV HOLOCHAIN_APP_WS_PORT=
ENV HOLOCHAIN_APP_ID=
ENV EVM_PRIVATE_KEY=
ENV ADMIN_TOKEN=

CMD [ "node", "index.mjs" ]
2 changes: 1 addition & 1 deletion packages/authority/src/evm-bytes-signer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function runEvmBytesSignerFromEnv() {
app.use(express.json());
app.post("/evm-signing-offer", async (req: Request, res: Response) => {
if (req.headers.authorization !== `Bearer ${getEnv("ADMIN_TOKEN")}`) {
console.log("Authorized");
console.log("Unauthorized");
return res.status(401).send();
}
console.log("POST: /evm-signing-offer", req.body);
Expand Down

0 comments on commit 4489226

Please sign in to comment.