-
Notifications
You must be signed in to change notification settings - Fork 924
Make PublicKey.createWithSeed (js) same as create_with_seed in runtime to avoid confusion #999
Comments
I would like to work on this |
As per @steveluscher's comments on the linked PR #1286 I think this is going to have to get solved in the new API, which will be laced into the existing API under the hood, effectively solving this problem upon incremental release. It's possible we can either close this and create a new issue for the new API |
Ah |
Is there any other issues that I can try my hands on? 👀 |
There should be a few in the issues that are geared towards the new API you might want to take a stab at! Check out the somewhat recent ones |
Ahhh thanks! |
This is now solana-web3.js/packages/addresses/src/program-derived-address.ts Lines 151 to 157 in e90ed59
|
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up. |
SystemProgram CreateAccountWithSeed instruction was failing sometimes, because seed too long.
Here ./sdk/src/pubkey.rs which is used here ./runtime/src/system_instruction_processor.rs
Javascript func doesn't care about seed length https://solana-labs.github.io/solana-web3.js/file/src/publickey.js.html#lineNumber82
So you think it's good, but then the runtime does nothing (nothing reported in logs either)
Suggest: make js function same as runtime, with error if seed too long.
The text was updated successfully, but these errors were encountered: