Implement seal_code_hash and seal_own_code_hash#1205
Conversation
891f434 to
6a85959
Compare
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Fri Apr 8 19:08:26 CEST 2022 |
Codecov Report
@@ Coverage Diff @@
## master #1205 +/- ##
===========================================
+ Coverage 61.69% 78.98% +17.28%
===========================================
Files 228 229 +1
Lines 8637 8667 +30
===========================================
+ Hits 5329 6846 +1517
+ Misses 3308 1821 -1487
Continue to review full report at Codecov.
|
crates/env/src/api.rs
Outdated
| }) | ||
| } | ||
|
|
||
| /// Retrieves the code hash of a contract living at specified account |
There was a problem hiding this comment.
Could you also add a section /// # Errors here?
| <EnvInstance as OnInstance>::on_instance(|instance| instance.code_hash::<E>(account)) | ||
| } | ||
|
|
||
| /// Retrieves the code hash of the currently executing contract. |
There was a problem hiding this comment.
Could you also add a section /// # Errors here?
Co-authored-by: Michael Müller <mich@elmueller.net>
Co-authored-by: Michael Müller <mich@elmueller.net>
Co-authored-by: Michael Müller <mich@elmueller.net>
Co-authored-by: Michael Müller <mich@elmueller.net>
This reverts commit 5591d95.
Follow-up for substrate#10933.
Resolves #1204.