Skip to content

Add demonstration how to mock transferred_balance#555

Merged
Robbepop merged 5 commits intomasterfrom
cmichi-add-transferred-balance-example
Nov 3, 2020
Merged

Add demonstration how to mock transferred_balance#555
Robbepop merged 5 commits intomasterfrom
cmichi-add-transferred-balance-example

Conversation

@cmichi
Copy link
Collaborator

@cmichi cmichi commented Oct 31, 2020

Adds a simple demonstration of how one can mock the amount send to a contract with a call.

Error was:

explicit lifetimes given in parameter types where they could
be elided (or replaced with `'_` if needed by type declaration)
@codecov-io
Copy link

codecov-io commented Nov 1, 2020

Codecov Report

Merging #555 into master will increase coverage by 11.39%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #555       +/-   ##
===========================================
+ Coverage   68.36%   79.75%   +11.39%     
===========================================
  Files         155      155               
  Lines        6811     6811               
===========================================
+ Hits         4656     5432      +776     
+ Misses       2155     1379      -776     
Impacted Files Coverage Δ
crates/lang/codegen/src/generator/metadata.rs 95.04% <100.00%> (+86.77%) ⬆️
crates/env/src/engine/off_chain/chain_extension.rs 60.00% <0.00%> (-40.00%) ⬇️
crates/env/src/engine/off_chain/db/chain_spec.rs 80.00% <0.00%> (-20.00%) ⬇️
crates/env/src/engine/off_chain/mod.rs 77.92% <0.00%> (-11.69%) ⬇️
crates/env/src/engine/off_chain/db/console.rs 15.78% <0.00%> (-10.53%) ⬇️
crates/env/src/engine/off_chain/db/accounts.rs 75.32% <0.00%> (-10.39%) ⬇️
crates/env/src/engine/off_chain/db/events.rs 9.67% <0.00%> (-6.46%) ⬇️
...ates/storage/src/collections/hashmap/fuzz_tests.rs 94.52% <0.00%> (-5.48%) ⬇️
crates/lang/ir/src/ir/item_impl/callable.rs 94.31% <0.00%> (+13.63%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89620e7...dcfc25a. Read the comment docs.

Copy link
Collaborator

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Also thanks for the clippy fixes!

@Robbepop Robbepop merged commit a35f76a into master Nov 3, 2020
@Robbepop Robbepop deleted the cmichi-add-transferred-balance-example branch November 3, 2020 15:04
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.

3 participants