Jump to content

Featured Replies

Hi,

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.

1157130334_ListofopcodesfromremixIDE.thumb.png.a82537e1f052929e9c2940b3262e471a.png

 

Somebody please guide me.

 

Zulfi.

 

Edited by zak100

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.