-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
Implemented core
add testing framework into v0.1
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 .