-
Notifications
You must be signed in to change notification settings - Fork 105
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
test(x/ecocredit): add bridge integration tests #1297
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1297 +/- ##
==========================================
+ Coverage 77.48% 77.50% +0.01%
==========================================
Files 220 221 +1
Lines 16130 16160 +30
==========================================
+ Hits 12499 12524 +25
- Misses 2612 2621 +9
+ Partials 1019 1015 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
// recipient is the address of the contract handling the bridged credits. | ||
string contract = 4; |
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.
The logic for this was already removed as we are now using batch contract mapping to check if credits can be bridged back to the source chain. If a batch contract mapping exists, the stored contract is used. It looks like I forgot to remove this field or I accidentally added it back in with a merge.
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.
great work!
* test(x/ecocredit): add bridge integration tests * add expect project properties * add bridge receive event check * add steps and testing reverse direction * use different address for recipient * use iteration to generate keys * expect error in code block (cherry picked from commit 1785310)
* test(x/ecocredit): add bridge integration tests (#1297) * test(x/ecocredit): add bridge integration tests * add expect project properties * add bridge receive event check * add steps and testing reverse direction * use different address for recipient * use iteration to generate keys * expect error in code block (cherry picked from commit 1785310) * make tidy Co-authored-by: Ryan Christoffersen <[email protected]>
Description
This pull request adds integration tests for bridging credits from polygon to regen and then back to polygon. This pull request also removes the unused
contract
field fromMsgBridge
as we are now using the stored contract inBatchContract
when credits are bridged usingMsgBridgeReceive
(this field should have been removed when adding batch contract mapping).Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change