Invalid password #6535
Invalid password
#6535
-
Beta Was this translation helpful? Give feedback.
Answered by
LearnerVii
Mar 31, 2024
Replies: 1 comment
-
Got the solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LearnerVii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got the solution.
I have passed wallet.encrypt() args in reverse order.
it has to be password and then key.
const encryptedJsonKey = await wallet.encrypt(
process.env.PRIVATE_KEY_PASSWORD,
process.env.PRIVATE_KEY
);