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,050 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,330 points
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
• 27,620 points
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
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,610 points
+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,330 points
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

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.