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

Implemented event_decoders_test.go #20

Closed
wants to merge 8 commits into from

Conversation

x-senpai-x
Copy link
Contributor

On line 41 I used a different value than what was used in python test suite due to discrepancy between the expected values in the Go and Python implementations for U256 .

Copy link
Member

@Sh0g0-1758 Sh0g0-1758 left a comment

Choose a reason for hiding this comment

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

In general, should be good to merge with a couple of nits.

}

// Helper function to parse big integers
func mustParseBigInt(s string, base int) *big.Int {
Copy link
Member

Choose a reason for hiding this comment

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

Move these helper functions to uitls.go

}{
{
name: "Approval Event",
abiEvent: NewAbiEvent(
Copy link
Member

Choose a reason for hiding this comment

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

How did you get this ? In the original code, I saw that they have loaded an abi for the testing purpose.

Copy link
Member

Choose a reason for hiding this comment

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

Okay, Lets wait for core.go to be implemented. Then you can use from_json function from it.

Copy link
Contributor Author

@x-senpai-x x-senpai-x Sep 23, 2024

Choose a reason for hiding this comment

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

@Sh0g0-1758 Do I need to incorporate starknetabifromjson?

@x-senpai-x x-senpai-x closed this by deleting the head repository Sep 22, 2024
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.

3 participants