Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

bugfix: balances::transfer for new_account issue#722 #731

Merged
merged 9 commits into from
Sep 13, 2018

Conversation

atenjin
Copy link
Contributor

@atenjin atenjin commented Sep 13, 2018

issue:#722
would_create flag should depend on dest, not origin.
change

let would_create = from_balance.is_zero();

to

    let to_balance = Self::free_balance(&dest); 
    let would_create = to_balance.is_zero(); 

in the other hand, provide fn new_test_ext2() and let transfer_fee=10, creation_fee=50 for test case

Aton and others added 3 commits September 13, 2018 14:37
issue:paritytech#722
would_create flag should depend on dest, not origin.
change 
```rust
let would_create = from_balance.is_zero();
```
to 
```rust
    let to_balance = Self::free_balance(&dest); 
    let would_create = to_balance.is_zero(); 
```
in the other hand, provide `fn new_test_ext2()` and let `transfer_fee=10`, `creation_fee=50` for test case
Copy link
Member

@gavofyork gavofyork left a comment

Choose a reason for hiding this comment

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

Minor whitespace nits and a duplicate line, but I fixed it. Thanks for the PR!

* Make `impl_outer_origin!` support generic `Origin`s

* Support empty outer origin
@atenjin
Copy link
Contributor Author

atenjin commented Sep 13, 2018

:)
I'm you fans~
I'm so amazing that you solved it so quickly!

@atenjin atenjin closed this Sep 13, 2018
@atenjin atenjin reopened this Sep 13, 2018
@gavofyork gavofyork merged commit 5a7cc59 into paritytech:master Sep 13, 2018
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Deposit Reward event earlier

Close paritytech#730

* Nit

* .

* Build wasm
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Split out reward.rs

* Deposit Reward event earlier (paritytech#731)

* Deposit Reward event earlier

Close paritytech#730

* Nit

* .

* Build wasm

* Refactoring for new distribution model (paritytech#735)

* Split out reward.rs

* Move reward related to reward.rs

* Extract try_funding_team

* Build wasm

* Fix/opreturn parse (paritytech#732)

* fix bug for transition_trustee_session

* provide test for opreturn

* provide new opreturn parser and tests

* Add is_xss_proof (paritytech#737)

* Add is_xss_proof

* Apply is_xss_proof on token name and desc

* Fix accounts tests

* Cursory impl for new distribution model

* Add multiply_by_rational

* Clean up

* Pub multiply_by_rational()

* Move VoteWeight definition to traits.rs

* Fix rls warnings in staking/src/lib.rs

* Refactor reward.rs a bit

* Refactor slash a bit

* Nit

* Add event when cross-chain assets grows too fast

* Nits

* Nits

* Add default value

* Test multiple_by_rational won't panic

* Unify Reward event by introducing SessionReward

* Nit
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
Removed in Rust 1.66:
```
warning: lint `const_err` has been removed: converted into hard error, see issue #71800 <rust-lang/rust#71800> for more information
   --> subxt/src/lib.rs:114:5
    |
114 |     const_err,
    |     ^^^^^^^^^
    |
    = note: `#[warn(renamed_and_removed_lints)]` on by default
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants