is it something which imposes by MetaMask ?
Hi, this tutorial walks you through modifying the template snap. The template snap code is here:
snap variable is injected by MetaMask in the snap environment. When you are writing your snap, you can use the
snap variable with methods in the Snaps API. You can find the various methods here: