DEV Community

Cover image for Array Tool SmartContract on XinFin XDC Network
MahaLakshmi Perumal
MahaLakshmi Perumal

Posted on

1 2

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;
}
}

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay