Array Tool SmartContract on XinFin XDC Network

mahalakshmiper7

MahaLakshmi Perumal

Posted on November 7, 2020

Array Tool SmartContract on XinFin XDC Network

Check the smartcontract for Array Tool written in Solidity language. Deployment on XInFin XDC is extremely easy and transaction cost is extremely low in compare with Ethereum.

Copy the code for Array Tool

pragma solidity ^0.4.24;
contract ArrayTools {
function _combineArray(uint256[] _array) internal pure returns(uint256) {
uint256 fullAmount;
for(uint256 i = 0; i < _array.length; i++) {
require(_array[i] > 0);
fullAmount += _array[i];
}
return fullAmount;
}
}

💖 💪 🙅 🚩
mahalakshmiper7
MahaLakshmi Perumal

Posted on November 7, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related