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

[Rewards] Fixed collectRewardsTx cross-chain request/response handling #110

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

evlekht
Copy link
Member

@evlekht evlekht commented Aug 2, 2024

Why this should be merged

Before this PR, cross-chain request were sent without handling response, which resulted in error messages, cause of unexpected timeout failure response, since pvm weren't sending any response as well.

This PR and chain4travel/caminogo#369 fixes that.

How this works

  • Use avax vm.SendCrossChainRequest method which properly utilized handlers and controls response "expectations".
  • Implement handler for cross-chain reward message.

How this was tested

Manually.

Additional references

Original PR based on cortina-15 dev
#102

@evlekht evlekht changed the title Dev c0/reward import handlers fix [Rewards] Fixed collectRewardsTx cross-chain request/response handling Aug 2, 2024
@evlekht evlekht force-pushed the dev-c0/reward-import-handlers-fix branch 3 times, most recently from 09b88ee to 3bd7986 Compare August 2, 2024 15:26
@mo-c4t
Copy link
Member

mo-c4t commented Aug 7, 2024

in the original PR there is another change in file accounts/abi/bind/bind_test.go

@evlekht
Copy link
Member Author

evlekht commented Aug 7, 2024

in the original PR there is another change in file accounts/abi/bind/bind_test.go

Its not there, because cortina 0 evm is based on pre-cortina caminogo (but app is still compiled with correct caminogo, since caminogo is starting point for compilation), so we simply didn't update it - there is no need. We'll update dependencies in last commits for clarity.

mo-c4t
mo-c4t previously approved these changes Aug 7, 2024
@evlekht evlekht force-pushed the dev-c0/reward-import-handlers-fix branch from 3bd7986 to 966264c Compare August 7, 2024 13:19
@evlekht evlekht changed the base branch from dev-c0/base to dev August 7, 2024 13:19
@evlekht evlekht dismissed mo-c4t’s stale review August 7, 2024 13:19

The base branch was changed.

@evlekht evlekht marked this pull request as ready for review August 7, 2024 13:19
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