Jump to content

EVM tags and opcodes


Recommended Posts


I want to understand the purpose of tags in EVM assembly and their relationship with Solidity function.


pragma solidity ^0.5.1;
   import './Mod.sol';
   contract MOFTest{
       ModifiedBank mb;
       constructor(address payable addressOfBank, uint amount) public {}
       function deposit (uint amount )  payable public {

I found that if I have a constructor then Remix IDE will have only 2 tags but now I have 2 functions and I found that there are 5 tags. Kindly explain me what is the purpose of tags and what is their relationship with Solidity functions? Also the tags are appearing in a haphazard manner, first tag1 and tag2 , then again tag1 and tag2, after that Remix IDE shows rag4, and then tag3 & tag5. I have attached an image image in this connection also related to the opcodes generated by the Remix IDE for the code shown above, sorry I can't scroll.



Somebody please guide me.




Edited by zak100
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.