Transaction cost variations in one contract vs. multiple contracts

0 votes
Let's say I want to make a Blockchain application having three entities - Owner, Tenant and some object to be a Renter. My question is - Should I make a single universal contract for all the three or do i need to make separate contracts for each of the entities?

While working on Remix IDE I observed that the total transaction cost for 3 contracts is lower than when i include all into one.
Apr 19, 2018 in Blockchain by Johnathon
• 9,080 points
27 views

1 answer to this question.

0 votes

You are free to choose whatever works for you. It is preferred to use different contracts solely coz of the fact that it would be a huge problem if one makes a mistake in one contract but deployed all 3 as one. And as you said, 3 contracts are even cheaper, then you have your answer!

Basically it's like uniting 3 web application into one monolith application vs having couple of services. A service always wins!

answered Apr 19, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

Where are the transaction details of a smart contract is written in Ethereum?

First ques:where in the blockchain is a ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,350 points
41 views
0 votes
1 answer

How to call function in one contract from another contract in private blockchain?

Please check whether you have byzantiumBlock: 0 in your ...READ MORE

answered Oct 1, 2018 in Blockchain by digger
• 26,550 points
47 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
140 views
0 votes
1 answer
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,620 points
136 views
+1 vote
4 answers

How to estimate the cost for deploying smart contract on mainnet?

Since you have already deployed the contract ...READ MORE

answered Apr 9, 2018 in Blockchain by Shashank
• 10,350 points
1,386 views
0 votes
1 answer

Transaction Id in Bitcoin Blockchain

The TransactionId comes from sending the coin. ...READ MORE

answered Jul 13, 2018 in Blockchain by Christine
• 15,790 points
115 views