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

     1  "use strict";
     2  
     3  function Contract() {}
     4  
     5  Contract.prototype = {
     6  	init: function () {
     7          //
     8      },
     9  
    10      // this function returns true if deployed in or after version 1.1.0, otherwise false
    11      supportInnerCall: function() {
    12          return typeof(Blockchain.Contract);
    13      },
    14  
    15      supportRandom: function() {
    16          return {
    17              randseed: typeof(Math.random.seed) === 'function',
    18              blockseed: Blockchain.block.seed != ''
    19          };
    20      }
    21  };
    22  
    23  module.exports = Contract;