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

Keypair Location Error #18

Open
JimLynchCodes opened this issue Dec 3, 2024 · 2 comments
Open

Keypair Location Error #18

JimLynchCodes opened this issue Dec 3, 2024 · 2 comments

Comments

@JimLynchCodes
Copy link
Contributor

JimLynchCodes commented Dec 3, 2024

Following the directions for "sb-randomness" exactly on a fresh scaffold, and I get this error when running the typescript start command:

[email protected]/node_modules/@switchboard-xyz/on-demand/dist/cjs/anchor-utils/AnchorUtils.js:31:71 {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './target/deploy/sb_randomness-keypair.json'
}
 ELIFECYCLE  Command failed with exit code 1.
@JimLynchCodes
Copy link
Contributor Author

Seems like the line "sb.AnchorUtils.loadEnv()" is trying to load the keypair from the wrong place...

But I have no control over the path here. What should I do in this case to make it actually work?

thanks!

@JimLynchCodes
Copy link
Contributor Author

@mgild @Astewart1510

I am still seeing this error... I think there is an issue with sb.AnchorUtils because it seems to break every single time with the wrong file path on fresh clone for me... 😔

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

No branches or pull requests

1 participant