-
Notifications
You must be signed in to change notification settings - Fork 240
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
Problem: generic events format are not implemented #689
Problem: generic events format are not implemented #689
Conversation
766a8db
to
b8f6202
Compare
b8f6202
to
a8702d7
Compare
event __CronosSendToIbc(address sender, string recipient, uint256 amount); | ||
event __CronosSendToChain(address sender, address recipient, uint256 amount, uint256 bridge_fee, uint256 chain_id); | ||
event __CronosCancelSendToChain(address sender, uint256 id); | ||
event __CronosSendToIbc(address sender, string recipient, uint256 amount, string channel_id, bytes extraData); |
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.
Will support indexed params in another PR. This is quite a big change.
a8702d7
to
c629384
Compare
recipient := unpacked[1].(string) | ||
amount := sdk.NewIntFromBigInt(unpacked[2].(*big.Int)) | ||
// channelId := unpacked[3].(string) | ||
// extraData := unpacked[4].([]byte) |
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.
why didn't we check/handle these 2 data? for the future use?
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.
arguments check is already handled by this line
unpacked, err := SendToIbcEventV2.Inputs.Unpack(data)
this is a comment to help for future use
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.
lgtm
c30dff3
to
68ab0fe
Compare
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
Solution : Implement ADR-007
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)