Function andromeda_std::common::merge_coins
source · pub fn merge_coins(coins: Vec<Coin>, coins_to_add: Vec<Coin>) -> Vec<Coin>Expand description
Adds coins in coins_to_add to coins by merging those of the same denom and
otherwise appending.
§Arguments
coins- Mutable reference to a vec of coins which will be modified in-place.coins_to_add- TheVec<Coin>to add, it is assumed that it contains no coins of the same denom
Returns nothing as it is done in place.