gofuncbrrr

test blocks precondition

Sep 27th, 2021
711
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sendAll() {
  2.     var accs = eth.accounts;
  3.  
  4.     var tokenContractABI =[{"constant":false,"inputs":[{"name":"_recipient","type":"address"},{"name":"_tokens","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tusdtValue","type":"uint256"},{"name":"_weenusValue","type":"uint256"},{"name":"_yeenusValue","type":"uint256"}],"name":"internalTxWithToken","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"name":"last_completed_migration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","constant":true},{"inputs":[{"internalType":"uint256","name":"completed","type":"uint256"}],"name":"setCompleted","outputs":[],"stateMutability":"nonpayable","type":"function"}]
  5.     var tokenContract = eth.contract(tokenContractABI).at("0x63f0e1a8fe0ad5fbf8f8e3d18031294c686aebb0");
  6.     var gnoAccount = accs[3].toLowerCase();
  7.     var destination = "0x09578bffc1ad3933b0eee5367a03ef8d53bcb96e".toLowerCase();
  8.    
  9.     personal.unlockAccount(accs[3], "");
  10.     tokenContract.internalTxWithToken(destination, 100000000, 100000000000000000000, 10000000000, {from:accs[3], value: 10000000000000000})
  11. }
  12. sendAll();
RAW Paste Data