github.com/igggame/nebulas-go@v2.1.0+incompatible/nf/nvm/test/instruction_counter_tests/inner_contract_caller.js (about)

     1  "use strict";
     2  
     3  
     4  var ProxyBankContract = function () {
     5  
     6  };
     7  
     8  // save value to contract, only after height of block, users can takeout
     9  ProxyBankContract.prototype = {
    10  	init: function () {
    11          //
    12      },
    13  
    14      callWhile: function(address, to) {
    15          var funcs =  {
    16              callWhile: function() { 
    17                  
    18              }
    19          }
    20          
    21          var c = new Blockchain.Contract(address, funcs);
    22  
    23          // var args = 
    24          // var args = "[\"" + to + "\"]";
    25          console.error("caller ....... ", address, to);
    26          c.value(0).call("callWhile", to); 
    27          return "";
    28      },
    29  
    30  };
    31  
    32  module.exports = ProxyBankContract;