Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function rand( uint256 seedB ) returns (uint256){
  2.  
  3. //define seedA variable
  4. uint256 seedA = 1;
  5.  
  6. uint amount = 1 finney;
  7.  
  8. if (seedA == seedB) {
  9. msg.sender.send(amount);
  10. }
  11.  
  12.  
  13. return seedA + seedB;
  14. }
  15.  
  16. random.rand.sendTransaction(1,
  17. {from: eth.accounts[0],
  18. value: web3.toWei(.0001, 'ether'),
  19. to: '0x4abc14efad9a7a84a0a9ef6e1a782c43a9e3f550',
  20. gas: 500000, data: web3.fromAscii('message')})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement