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

Starknet #17

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Starknet #17

wants to merge 9 commits into from

Conversation

codeWhizperer
Copy link

No description provided.

@JesseTheRobot JesseTheRobot self-requested a review December 1, 2024 21:28
Copy link
Member

@JesseTheRobot JesseTheRobot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty good - just got some things I'd like changed and some questions I'd like answered

packages/aptos-web/src/token.ts Outdated Show resolved Hide resolved
examples/node/scripts/tokens/starknet.ts Outdated Show resolved Hide resolved
examples/node/scripts/tokens/starknet.ts Outdated Show resolved Hide resolved
examples/node/scripts/tokens/starknet.ts Outdated Show resolved Hide resolved
};

// Update the NodeIrysConfig type to include TokenOptions for tokenOpts
interface NodeIrysConfig<T> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there an unused generic here?

packages/starknet-node/src/token.ts Outdated Show resolved Hide resolved
packages/starknet-node/src/token.ts Outdated Show resolved Hide resolved
packages/upload-node/src/tokens/base.ts Show resolved Hide resolved
packages/upload-web/src/tokens/base.ts Show resolved Hide resolved
packages/starknet-node/src/abi/erc20.abi.json Show resolved Hide resolved
const addressLength = 32;

// Get the returned public key and convert to a buffer
const returnedPubKey = await this.getAccountPublicKey();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function should be in getPublicKey, the result from getPublicKey should be able to be passed into ownerToAddress to go from publicKey -> Address, to mimic what happens when we take the publicKey from a transaction when verifying it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the conclusion was to have the ownerToAddress compare the public from the signer instance with the publickey returned from getAccountPublickey and if it is equal , then we can return the address

}

getPublicKey(): string | Buffer {
return this.signer.publicKey;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this method is correct given our compound public key definition

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method above return the publickey value directly from the Signer instance

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

Successfully merging this pull request may close these issues.

2 participants