-
Notifications
You must be signed in to change notification settings - Fork 632
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
wallet_contract
now returns contract based on the hash
#12041
Conversation
Hash is stored in the `Account` and the rest of the codebase largely expects the hash to uniquely identify the specific contract code. For the time being just return exactly what's stored in the `Account` and think about updating the accounts later...
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12041 +/- ##
==========================================
- Coverage 71.51% 71.50% -0.02%
==========================================
Files 814 814
Lines 164513 164465 -48
Branches 164513 164465 -48
==========================================
- Hits 117648 117593 -55
- Misses 41699 41703 +4
- Partials 5166 5169 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 general idea looks right to me. It would be nice to restore the tests in the wallet contract crate in a follow-up PR.
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.
Sorry, I realized this change isn't quite right because of the legacy accounts that look like eth-implicit, but are not.
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 for testnet, cherry-picking...
} | ||
_ => LOCALNET.read_contract(), |
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.
This allowed the LOCALNET
contract to be deployed on test chains. i.e. mocknet
. What contract will be picked in this case?
Hash is stored in the `Account` and the rest of the codebase largely expects the hash to uniquely identify the specific contract code. For the time being just return exactly what's stored in the `Account` and think about updating the accounts later...
Hash is stored in the
Account
and the rest of the codebase largely expects the hash to uniquely identify the specific contract code. For the time being just return exactly what's stored in theAccount
and think about updating the accounts later...