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

OnReceived hook for pallet-balances #6097

Closed
xlc opened this issue May 21, 2020 · 1 comment
Closed

OnReceived hook for pallet-balances #6097

xlc opened this issue May 21, 2020 · 1 comment

Comments

@xlc
Copy link
Contributor

xlc commented May 21, 2020

We would like to have an OnReceived hook to do something when an account received some funds.

For now we will be just wrap StoredMap to achieve similar result

impl<T: Trait> StoredMap<T::AccountId, T::AccountData> for Module<T> {

Required by AcalaNetwork/Acala#236

@xlc xlc mentioned this issue May 29, 2020
@xlc
Copy link
Contributor Author

xlc commented May 30, 2020

Just found out there is StorageMapShim that basically does the wrap StoredMap work so we don't need this anymore.

@xlc xlc closed this as completed May 30, 2020
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 a pull request may close this issue.

1 participant