Avoid duplication related to scopes checking
Clarification and motivation
We have quite big pieces of code which only check multiple constraints related to scopes, e.g. this one.
Recently a checkScope
function appeared which can help to reduce this boilerplate.
Acceptance criteria
Each group of calls of opAbsence
, checkBigMapPresence
and other functions from Scope
should be replaced with checkScope
or maybe some similar function. Single calls of e.g. opAbsence
are fine to leave as is if convenient.
Edited by Konstantin Ivanov