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

fix: Update create-claim script to use createACDClaim #624

Merged
merged 9 commits into from
Oct 23, 2018
Merged

Conversation

jwicks31
Copy link
Contributor

@jwicks31 jwicks31 commented Oct 23, 2018

PR Process - PR Review Checklist

Release

Semantic release is enabled for this repository. Make sure you follow the right commit message convention.
We're using semantic-release's default — Angular Commit Message Conventions.

Description of Changes

Fixes #625

The create-claim script broke when updating to poet-js v5.0.5.

Moved create[Type of Claim]Claim functions to tests/helpers/utils so that create-claim script can use them without triggering the setUpClaims script.

@jwicks31 jwicks31 requested a review from warrenv October 23, 2018 18:59
@jwicks31 jwicks31 self-assigned this Oct 23, 2018
@jwicks31 jwicks31 changed the title Update create-claim script to use createACDClaim fix: Update create-claim script to use createACDClaim Oct 23, 2018
@warrenv
Copy link
Contributor

warrenv commented Oct 23, 2018

What are the package.json and package-lock.json files in here for?

@jwicks31
Copy link
Contributor Author

jwicks31 commented Oct 23, 2018

@warrenv I had to add @types/ramda to be able to run the script.

Copy link
Contributor

@krobi64 krobi64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Tested changes manually
  • Checked accidental architectural/style changes
  • Reviewed entire diff
  • [NA] Unit tests
  • [NA] Documentation
  • [NA] Filenames and locations

Nice cleanup. Remove the ; and it looks good to me.


const main = async () => {
const attributes = {
name: process.argv[2] || 'testing claim',
author: process.argv[3] || 'the tester',
}
const client = new Client()
const claim = await createClaim(PrivateKeyACD, ClaimType.Work, attributes)
const claim = await createACDClaim(attributes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ;

@jwicks31 jwicks31 merged commit d425602 into master Oct 23, 2018
@jwicks31 jwicks31 deleted the create-claim branch October 23, 2018 20:32
@jwicks31 jwicks31 restored the create-claim branch October 24, 2018 22:02
@jwicks31 jwicks31 mentioned this pull request Oct 24, 2018
@jwicks31 jwicks31 deleted the create-claim branch October 24, 2018 22:30
@poet-ci
Copy link

poet-ci commented Oct 25, 2018

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Create-Claim Script
4 participants