Skip to content

Commit

Permalink
Merge pull request #6 from pendulum-chain/148-specify-0-fees-for-dia-…
Browse files Browse the repository at this point in the history
…oracle-pallet-set_updated_coin_infos

specify 0 fees for dia oracle pallet set updated coin infos
  • Loading branch information
RustNinja authored Mar 3, 2023
2 parents f9c171b + 8bf7da3 commit 2085de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/dia-oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,14 @@ pub mod pallet {
pub fn set_updated_coin_infos(
origin: OriginFor<T>,
coin_infos: Vec<((Vec<u8>, Vec<u8>), CoinInfo)>,
) -> DispatchResult {
) -> DispatchResultWithPostInfo {
let origin_account_id = ensure_signed(origin)?;
Pallet::<T>::check_origin_rights(&origin_account_id)?;
Self::deposit_event(Event::<T>::UpdatedPrices(coin_infos.clone()));
for ((blockchain, symbol), c) in coin_infos {
<CoinInfosMap<T>>::insert(AssetId { blockchain, symbol }, c);
}
Ok(())
Ok(Pays::No.into())
}

#[pallet::weight(<T as Config>::WeightInfo::set_batching_api())]
Expand Down

0 comments on commit 2085de3

Please sign in to comment.