DEV Community

Cover image for Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.
MahaLakshmi Perumal
MahaLakshmi Perumal

Posted on

 

Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.

Created and deployed a smartcontract on XinFin XDC Network that Airdrop XDC to multiple user at a time.
Check the Code for the deployment:
pragma solidity ^0.4.25;
contract XDC01 {
function transfer(address _recipient, uint256 _value) public returns (bool success);
}
contract Airdrop {
function drop(XDC01 token, address[] recipients, uint256[] values) public {
for (uint256 i = 0; i < recipients.length; i++) {
token.transfer(recipients[i], values[i]);
}
}
}

Oldest comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git