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

Use class hash 0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f for create account show different address #2143

Open
gtmickey opened this issue Aug 23, 2024 · 1 comment

Comments

@gtmickey
Copy link

gtmickey commented Aug 23, 2024

On Sepolia testnet

I import a random phrase to argent-x wallet, and my first account is
privateKey: 0x003240a3ed6737942813b39245f06e6287ae8c12dbe3efb8434bb0cc956544e9
publicKey:FMZtUieh93EjoXPcSFLqbpm9hkkrHM5pBM4fZhuLDdZ
address: 0x02b45D8F1F8572ef0D1Ad79fe6589576272e5dc16C94B9b832408aEbffe2de97

  1. publicKey shows like base58, and how to encode hex public key to it?

  2. when I use same compute logic on starknet-rs and argent-starknet-recover
    using class hash: 0x036078334509b514626504edc9fb252328d1a240e4e948bef8d0c08dff45927f

both output address is 0x40f0724c746b65e5545bfc794bdd3cce1f6d17bcaa1c0bf5d1b7a597a79104a
it's different with argent-x
looking for a guide, thanks a lot.

@vrockz747
Copy link

vrockz747 commented Nov 4, 2024

Hi, i was facing similar issue and fixed it by getting the right calldata value. You can confirm yours by looking up the DEPLOY_ACCOUNT txn in blockexplorer, and get the original calldata values which were used at the time of deployment.
This is the value i used to get the correct address
const AXConstructorCallData = CallData.compile(['0x00',starkKeyPubAX,'0x01']);

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

2 participants