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

Better deploy error #328

Open
mixmix opened this issue May 2, 2024 · 0 comments
Open

Better deploy error #328

mixmix opened this issue May 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request housekeeping lets keep the house in order
Milestone

Comments

@mixmix
Copy link
Collaborator

mixmix commented May 2, 2024

Problem

I go to deploy a program and get this error

Error: programs.ProgramAlreadySet: Program already set at hash.
    at file:///home/projects/ENTROPY/sdk/dist/index.js:61:20
    at file:///home/projects/ENTROPY/sdk/node_modules/@polkadot/api/promise/decorateMethod.js:56:28
    at file:///home/projects/ENTROPY/sdk/node_modules/@polkadot/util/nextTick.js:13:13

This is happening because someone already deployed the program. This is all well and good, but now I cannot use the program, because I have zero idea what the programPointer is 💀

Proposal

few options:

  1. don't error, just give me the pointer
    That the program is already deployed already is not relevant to me. I just want the pointer please. Get out of my way and let me continue with my work

  2. error, but attach the pointer
    The advantage of this one is that with an error there is the possibility of putting control logic in (you could still ignore the error if you wanted... but you'd have the thing you need still)

@mixmix mixmix changed the title Better redeploy error Better deploy error May 2, 2024
@mixmix mixmix added this to the open source/test-net milestone May 2, 2024
@frankiebee frankiebee added enhancement New feature or request housekeeping lets keep the house in order bug Something isn't working labels Jul 24, 2024
@frankiebee frankiebee removed this from the open source/test-net milestone Oct 17, 2024
@frankiebee frankiebee added this to the next version milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request housekeeping lets keep the house in order
Projects
None yet
Development

No branches or pull requests

2 participants