Default impl of is_trusted_relayer bypasses check for self-calls:
if *account_id == env::current_account_id() {
return true;
}
This guard is meant for external API, not callbacks (#[private]). I couldn't find a case where this bypass is needed. What's the intended scenario? If none — worth removing.
Default impl of
is_trusted_relayerbypasses check for self-calls:This guard is meant for external API, not callbacks (#[private]). I couldn't find a case where this bypass is needed. What's the intended scenario? If none — worth removing.