-
Notifications
You must be signed in to change notification settings - Fork 443
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
Name API consistently: transferred_balance
➔ transferred_value
#1063
Conversation
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Wed Dec 1 20:34:38 CET 2021 |
Codecov Report
@@ Coverage Diff @@
## master #1063 +/- ##
==========================================
- Coverage 78.74% 75.35% -3.39%
==========================================
Files 248 248
Lines 9371 9369 -2
==========================================
- Hits 7379 7060 -319
- Misses 1992 2309 +317
Continue to review full report at Codecov.
|
☝️ 💯 |
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.
@@ -357,7 +357,7 @@ impl TypedEnvBackend for EnvInstance { | |||
self.get_property_inplace::<T::AccountId>(ext::caller) | |||
} | |||
|
|||
fn transferred_balance<T: Environment>(&mut self) -> T::Balance { | |||
fn transferred_value<T: Environment>(&mut self) -> T::Balance { |
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.
If we really wanted to nitpick on the consistency then the seal
fn value_transferred
should also be the same 😀
…se-ink#1063) * Name API consistently: `transferred_balance` ➔ `transferred_value` * Apply `cargo fmt`
transferred_balance was renamed to transferred_value in use-ink/ink#1063
I honestly don't care what we rename it to, but we should finally make the naming consistent.
I'm not opening up the whole thing with renaming endowment to value that was started in paritytech/substrate#10082 here.