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

chore::> Change input type of SignInvokeTransaction, SignDeployAccountTransaction, and SignDeclareTransaction #591

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

PsychoPunkSage
Copy link
Contributor

@PsychoPunkSage PsychoPunkSage commented Jul 11, 2024

For issue #590

This PR will Solve #590 pointer 2

Copy link
Collaborator

@thiagodeev thiagodeev left a comment

Choose a reason for hiding this comment

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

Nice @PsychoPunkSage.
I left some observations

account/account.go Outdated Show resolved Hide resolved
rpc/types_broadcast_transaction.go Outdated Show resolved Hide resolved
@thiagodeev
Copy link
Collaborator

Also, the code is failing in some CI test

@thiagodeev thiagodeev self-requested a review July 11, 2024 16:34
Copy link
Collaborator

@thiagodeev thiagodeev left a comment

Choose a reason for hiding this comment

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

Hey @PsychoPunkSage, there are a few things that need fixing


switch txn := tx.(type) {
case rpc.DeclareTxnV0:
// Due to inconsistencies in version 0 hash calculation we don't calculate the hash
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you do that? The description says about the V0 and you removed the V0 and applied the comment to the V1, you also removed the V1 hash calculation. Let's put them back

account/account.go Outdated Show resolved Hide resolved
account/account.go Outdated Show resolved Hide resolved
rpc/types_broadcast_transaction.go Show resolved Hide resolved
@thiagodeev
Copy link
Collaborator

As discussed internally, we'll need first to create a function to calculate the class hash of legacy contract classes. It'll be done soon

@thiagodeev thiagodeev marked this pull request as draft July 22, 2024 21:07
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