Smart Contract: EOSIO vs EVM | Lesson-2

How to define a Constructor

Abhijit Roy
Jun 29, 2021

Hi everyone,

Welcome to another lesson of this series.

Constructor is an important part of a contract layout.

NOTE:

In EOSIO, the contract is deployed onto an account (already created before). So, the filename, contract name, account name has to match [RECOMMENDED]

In ETH, the contract name has to be matched with the filename. So, here the contract address is not known beforehand. It is generated during contract deployment.

So, here it is:

EOSIO vs ETH — define a constructor

That’s it for now…

Follow me on:
Email — dalvath3700@gmail.com
Github — https://github.com/abhi3700
Telegram — https://t.me/abhi3700
Steemit — https://steemit.com/@abhi3700
LinkedIn — https://www.linkedin.com/in/abhi3700/
Twitter — https://twitter.com/abhi3700
Medium — https://medium.com/@abhi3700
Fiverr — https://www.fiverr.com/abhijitroy294
Facebook — https://www.facebook.com/abhi3700

--

--

Abhijit Roy

Blockchain (Rust, Solidity, C++, JS/TS) || Data Science (Python) || Bot (Python) || Backend (JS, TS)