Skip to content
Unverified Commit 84d64374 authored by polka.dom's avatar polka.dom Committed by GitHub
Browse files

Remove pallet::getter usage from pallet-contracts-mock-network (#4417)

A part of #3326 

Removes all #[pallet::getter] usage from the contracts mock network
pallet. As the storage values were pub(super), read-only visibility was
lost external to the crate upon the removal of the macros. I have
implemented custom getters as a replacement, keeping the api the same.

If we care very much about consistency of the
storagevalue::<T>::get() syntax, the other option would be to set
the storage values to pub. Though I find preserving data authority
better myself.

@muraca
parent a993513c
Pipeline #473877 waiting for manual action with stages
in 25 minutes and 38 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment