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

Commits on Sep 13, 2018

  1. bugfix: balances::transfer for new_account

    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
    Aton committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    85f6542 View commit details
    Browse the repository at this point in the history
  2. Update lib.rs

    gavofyork authored Sep 13, 2018
    Configuration menu
    Copy the full SHA
    684ca1c View commit details
    Browse the repository at this point in the history
  3. Update tests.rs

    gavofyork authored Sep 13, 2018
    Configuration menu
    Copy the full SHA
    35b15f5 View commit details
    Browse the repository at this point in the history
  4. Make impl_outer_origin! support generic Origins (paritytech#732)

    * Make `impl_outer_origin!` support generic `Origin`s
    
    * Support empty outer origin
    bkchr authored and gavofyork committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    2e9704c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5b14573 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    00e5f23 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'bugfix_balances_transfer' of https://github.com/JKingdo…

    …m/substrate into JKingdom-bugfix_balances_transfer
    gavofyork committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    4777176 View commit details
    Browse the repository at this point in the history
  8. Fix test

    gavofyork committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    86ffce9 View commit details
    Browse the repository at this point in the history
  9. Anothe fix

    gavofyork committed Sep 13, 2018
    Configuration menu
    Copy the full SHA
    c05c1e8 View commit details
    Browse the repository at this point in the history