Skip to content

Commit

Permalink
refactor: remove runId
Browse files Browse the repository at this point in the history
  • Loading branch information
hhio618 committed Oct 16, 2024
1 parent ff0d9d9 commit 5b20c35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions scripts/github-action-permit-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import * as fs from "fs";
* Generates all the permits based on the current github workflow dispatch.
*/
export async function generatePermitsFromGithubWorkflowDispatch() {
const runId = github.context.runId;

// These are necessary to ensure the type checks and tests pass.
process.env["NFT_MINTER_PRIVATE_KEY"] = "";
process.env["NFT_CONTRACT_ADDRESS"] = "";
Expand Down Expand Up @@ -52,7 +50,6 @@ export async function generatePermitsFromGithubWorkflowDispatch() {
evmNetworkId: Number(env.EVM_NETWORK_ID),
evmPrivateEncrypted: env.EVM_PRIVATE_KEY,
permitRequests: permitRequests,
runId: runId,
};

const octokit = new Octokit({ auth: env.GITHUB_TOKEN });
Expand Down
4 changes: 1 addition & 3 deletions src/handlers/generate-erc20-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ export async function generateErc20PermitSignature(
issueNodeId = contextOrPayload.payload.issue.node_id;
} else if ("pull_request" in contextOrPayload.payload) {
issueNodeId = contextOrPayload.payload.pull_request.node_id;
} else if (contextOrPayload.config.runId) {
issueNodeId = uuid();
} else {
throw new Error("Issue Id is missing");
issueNodeId = uuid();
}
}

Expand Down

0 comments on commit 5b20c35

Please sign in to comment.