Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

GitHub actions added #969

Merged
merged 4 commits into from
May 19, 2022
Merged

GitHub actions added #969

merged 4 commits into from
May 19, 2022

Conversation

volovyks
Copy link
Collaborator

No description provided.

@@ -85,6 +84,10 @@ async function devDeploy(options) {
// Deploy with init function and args
const actions = [transactions.deployContract(readFileSync(options.wasmFile))];

if (options.initArgs && !options.initFunction) {
options.initFunction = 'new';
Copy link
Member

Choose a reason for hiding this comment

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

Why we use this over default: 'new' ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ailisp The idea is to be able not to set initFunction in CLI when it has the default name (new).
But when we are setting the default value of initFunction to new, args become mandatory even when you are not initializing the contract and it breaks the logic.

Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

CI setup looks good. The eslint danger is failing, not sure if that need to be fixed

@volovyks
Copy link
Collaborator Author

@ailisp I will fix danger in a separate PR. Or just set API keys, looks like this is the problem.

@volovyks volovyks merged commit b442f86 into master May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants