How to define a Constructor

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

--

--

To get a contract balance from inside the method/function itself.

After a long time, I realized that 90% of the Blockchain Industry is still using the old general purpose Blockchain — Ethereum.

So, I decided to start learning by comparing EOSIO (joined since pre-release) with ETH Contract.

EOSIO vs ETH: get contract balance from inside the function itself

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

Abhijit Roy

A Software Developer | Data Science • Blockchain • Bots • Android | C++ • Python • Solidity • Rust • Java