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

dev-deploy usage restricted on mainnet #714

Merged
merged 9 commits into from
Apr 29, 2021
Merged

dev-deploy usage restricted on mainnet #714

merged 9 commits into from
Apr 29, 2021

Conversation

volovyks
Copy link
Collaborator

closes #657

@volovyks volovyks added the bug Something isn't working label Apr 17, 2021
@volovyks volovyks self-assigned this Apr 17, 2021
@volovyks volovyks requested a review from vgrichina April 17, 2021 14:22
@@ -36,6 +36,10 @@ module.exports = {
};

async function devDeploy(options) {
const currentNetwork = options.networkId;
Copy link
Contributor

Choose a reason for hiding this comment

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

Better test for mainnet specifically, betanet should support dev-deploy for example

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vgrichina
Yes, I thought the same, but it does not work on betanet, and dev-deploy docs are explicitly targeting testnet.

Copy link
Contributor

Choose a reason for hiding this comment

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

@volovyk-s why it doesn't work on betanet, what does happen?

Copy link
Collaborator Author

@volovyks volovyks Apr 20, 2021

Choose a reason for hiding this comment

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

@vgrichina It throws an error:
`BadRequestError: Error: {"index":0,"account_id":"dev-1618909283091-6810991","predecessor_id":"betanet","registrar_account_id":"near","kind":{"account_id":"dev-1618909283091-6810991","registrar_account_id":"near","predecessor_id":"betanet"}}

According to @frol dev-deploy relies on wallet helper to distribute tokens for newly crated accounts. Probably it's not working on betanet.
`

Copy link
Contributor

Choose a reason for hiding this comment

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

@volovyk-s so this seems a betanet helper misconfiguration issue that we need to fix

Copy link
Collaborator

Choose a reason for hiding this comment

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

That is odd! Is testnet still misconfigured allowing non-suffixed account ids? cc @bowenwang1996

Copy link
Contributor

Choose a reason for hiding this comment

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

@frol why misconfigured? AFAIK even mainnet allows to create arbitrary account IDs if they are at least 32 characters long.

For example https://explorer.near.org/accounts/mikemikemikemikemikemikemikemike

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@frol where this configuration is? Who is responsible for it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, I thought the account id is going to be shorter than 32 characters, so it depends on how big the randomNumber is then.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vgrichina @frol I have increased dev acc length.

@volovyks volovyks requested review from vgrichina and frol April 28, 2021 10:27
Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

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

Does it work on betanet now?

@volovyks
Copy link
Collaborator Author

Yes, this is why I have changed the length of the acc.

@volovyks volovyks merged commit 90ca53c into master Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dev-deploy on MainNet shows unclear error
3 participants