Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I forgot to initialize ERC20token ec; in Test contarct, that's why I was getting the following error: "The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance." Thank you.
uint result = anotherContract.someFunction{value: _amountToOther * 1 wei}(); here value is passed to somefuntion() because its declared payable and it can receive wei or ether.
Thank you but actually I know all of these things about blockchain. My concern was there three research papers, out of which one is published in IEEE transaction and other two are also published in reputed conferences, and they have used execution time as a performance metric for comparing blockchain platforms. So I just wanted to know the web3.js commands to calculate it.
I wanted to do a comparative analysis of public blockchain platforms. So, I need to do the performance analysis of a blockchain platform. Blockchain researches in their published research work have used completion time of a set of transactions as one of the performance metric.
But researcher in their research papers have calculated the execution time of a transaction from its deployment time and completion time.Just they have not explained the commands or procedure to calculate it.