MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / getGitCommitSha

Function getGitCommitSha

contracts/scripts/deploy-gateway.template.ts:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const { getSelectors, FacetCutAction } = require('./js/diamond.js')
8
9function getGitCommitSha(): string {
10 const commitSha = require('child_process')
11 .execSync('git rev-parse --short HEAD')
12 .toString()
13 .trim()
14 return commitSha
15}
16export async function deploy(libs: { [key in string]: string }) {
17 if (!libs || Object.keys(libs).length === 0)
18 throw new Error(`Libraries are missing`)

Callers 1

deployFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected