Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dev-deploy.sh only deploy contract when it changes #4

Open
2 tasks
Sladuca opened this issue Aug 13, 2021 · 0 comments
Open
2 tasks

Make dev-deploy.sh only deploy contract when it changes #4

Sladuca opened this issue Aug 13, 2021 · 0 comments
Labels
good first issue Good for newcomers ops

Comments

@Sladuca
Copy link
Contributor

Sladuca commented Aug 13, 2021

RN, dev-deploy.sh always redeploys the contract. This is slow, unnecessary, and it bloats NEAR's testnet.

Tasks:

  • Create a script that: 1) checksums the contract source, 2) if a checksum file (let's call it contract.sum) DNE or it contains a different checksum, then write to the checksum file and output a truthy value, otherwise output a falsy value
  • In dev-deploy.sh, only deploy the contract if the checksum script outputs a truthy value.
@Sladuca Sladuca added good first issue Good for newcomers ops labels Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ops
Projects
None yet
Development

No branches or pull requests

1 participant