Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://gist.github.com/Chidambaram30/8e276dae50222416db10e0a52aa34616.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change accountToSignWith to the address of your account. | |
var Web3 = require('web3'); | |
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
var accountToSignWith = '0xbedcf417ff2752d996d2ade98b97a6f0bef4beb9'; | |
var message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tubulum fuisse, qua illum, cuius is condemnatus est rogatione, P. Eaedem res maneant alio modo.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "github/OpenZeppelin/zeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; | |
import "gist/Ballot.sol"; | |
contract AwardToken is MintableToken { | |
uint quantity; | |
uint ballotPeriod = 7 hours; | |
Ballot public currBallot; | |
address[] public prevWinners; | |
event log (string _msg); | |
event winLog (address _win); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solidity code: | |
contract c { | |
function f(uint x) internal returns (uint) { | |
while (x > 0) | |
return 2 * f(x - 1); | |
} | |
} | |
Yul IR: |