oraclize_newRandomDSQuery (Oraclize) on testrpc



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have the following contract that i plan on using as an external contract in a different contract:



pragma solidity ^0.4.24;

import "./Ownable.sol";
import "./oraclizeAPI.sol";

interface EtherHiLoRandomNumberRequester

function incomingRandomNumber(address player, uint8 randomNumber) external;

function incomingRandomNumberError(address player) external;



interface EtherHiLoRandomNumberGenerator

function generateRandomNumber(address player, uint8 max) external returns (bool);



/// @title EtherHiLoRandom
/// @dev the contract than handles the EtherHiLo random numbers
contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator

uint8 constant FAILED_ROLE = 69;

uint public rngCallbackGas;

mapping(bytes32 => uint) private failedRolls;
mapping(bytes32 => address) private rollIdToPlayer;
mapping(bytes32 => uint8) private rollIdToMax;
mapping(bytes32 => address) private rollIdToCaller;

constructor() public
oraclize_setProof(proofType_Ledger);
setRNGCallbackGasConfig(1500000, 10000000000);


function generateRandomNumber(address player, uint8 max) external returns (bool)

bytes32 rollId = oraclize_newRandomDSQuery(0, 7, rngCallbackGas);
if (failedRolls[rollId] == FAILED_ROLE)
delete failedRolls[rollId];
delete rollIdToPlayer[rollId];
delete rollIdToMax[rollId];
delete rollIdToCaller[rollId];
return false;


rollIdToPlayer[rollId] = player;
rollIdToMax[rollId] = max;
rollIdToCaller[rollId] = msg.sender;
return true;


function __callback(bytes32 rollId, string _result, bytes _proof) public
require(msg.sender == oraclize_cbAddress());

address player = rollIdToPlayer[rollId];
address caller = rollIdToCaller[rollId];
uint8 max = rollIdToMax[rollId];

// avoid reorgs
if (player == address(0))
failedRolls[rollId] = FAILED_ROLE;
return;


delete failedRolls[rollId];
delete rollIdToPlayer[rollId];
delete rollIdToMax[rollId];
delete rollIdToCaller[rollId];

EtherHiLoRandomNumberRequester requester = EtherHiLoRandomNumberRequester(caller);

if (oraclize_randomDS_proofVerify__returnCode(rollId, _result, _proof) != 0)
requester.incomingRandomNumberError(player);

else
uint8 randomNumber = uint8(uint(keccak256(_result)) % max);
requester.incomingRandomNumber(player, randomNumber);




/// OWNER / MANAGEMENT RELATED FUNCTIONS

function transferBalance(address to, uint amount) public onlyOwner
to.transfer(amount);


function setRNGCallbackGasConfig(uint gas, uint price) public onlyOwner
rngCallbackGas = gas;
oraclize_setCustomGasPrice(price);


function destroyAndSend(address _recipient) public onlyOwner
selfdestruct(_recipient);





And I have the following test:



pragma solidity ^0.4.24;

import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/EtherHiLoRandom.sol";

contract TestEtherHiLoRandom is EtherHiLoRandomNumberRequester

function incomingRandomNumber(address player, uint8 randomNumber)
//require(false, "incomingRandomNumber");


function incomingRandomNumberError(address player)
//require(false, "incomingRandomNumberError");


function testInitialBalanceUsingDeployedContract()
EtherHiLoRandom subject = EtherHiLoRandom(DeployedAddresses.EtherHiLoRandom());

bool result = subject.generateRandomNumber(msg.sender, 5);
Assert.isTrue(result, "generateRandomNumber failed");


Assert.isTrue(true, "itchy balls");





My test fails in TestEtherHiLoRandom when it calls oraclize_newRandomDSQuery. The error that i get is:



 TestEtherHiLoRandom
1) testInitialBalanceUsingDeployedContract
> No events were emitted


0 passing (3s) 1 failing

1) TestEtherHiLoRandom
testInitialBalanceUsingDeployedContract:
Error: VM Exception while processing transaction: revert
at Object.InvalidResponse (node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
at node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
at node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at IncomingMessage.<anonymous> (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)


Any idea what i'm doing wrong? I haven't yet ran it on any test networks, only my local testrpc (i'm using ethereum-bridge and have verified that the Oraclize contract is properly deployed on the testrpc).










share|improve this question




























    1















    I have the following contract that i plan on using as an external contract in a different contract:



    pragma solidity ^0.4.24;

    import "./Ownable.sol";
    import "./oraclizeAPI.sol";

    interface EtherHiLoRandomNumberRequester

    function incomingRandomNumber(address player, uint8 randomNumber) external;

    function incomingRandomNumberError(address player) external;



    interface EtherHiLoRandomNumberGenerator

    function generateRandomNumber(address player, uint8 max) external returns (bool);



    /// @title EtherHiLoRandom
    /// @dev the contract than handles the EtherHiLo random numbers
    contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator

    uint8 constant FAILED_ROLE = 69;

    uint public rngCallbackGas;

    mapping(bytes32 => uint) private failedRolls;
    mapping(bytes32 => address) private rollIdToPlayer;
    mapping(bytes32 => uint8) private rollIdToMax;
    mapping(bytes32 => address) private rollIdToCaller;

    constructor() public
    oraclize_setProof(proofType_Ledger);
    setRNGCallbackGasConfig(1500000, 10000000000);


    function generateRandomNumber(address player, uint8 max) external returns (bool)

    bytes32 rollId = oraclize_newRandomDSQuery(0, 7, rngCallbackGas);
    if (failedRolls[rollId] == FAILED_ROLE)
    delete failedRolls[rollId];
    delete rollIdToPlayer[rollId];
    delete rollIdToMax[rollId];
    delete rollIdToCaller[rollId];
    return false;


    rollIdToPlayer[rollId] = player;
    rollIdToMax[rollId] = max;
    rollIdToCaller[rollId] = msg.sender;
    return true;


    function __callback(bytes32 rollId, string _result, bytes _proof) public
    require(msg.sender == oraclize_cbAddress());

    address player = rollIdToPlayer[rollId];
    address caller = rollIdToCaller[rollId];
    uint8 max = rollIdToMax[rollId];

    // avoid reorgs
    if (player == address(0))
    failedRolls[rollId] = FAILED_ROLE;
    return;


    delete failedRolls[rollId];
    delete rollIdToPlayer[rollId];
    delete rollIdToMax[rollId];
    delete rollIdToCaller[rollId];

    EtherHiLoRandomNumberRequester requester = EtherHiLoRandomNumberRequester(caller);

    if (oraclize_randomDS_proofVerify__returnCode(rollId, _result, _proof) != 0)
    requester.incomingRandomNumberError(player);

    else
    uint8 randomNumber = uint8(uint(keccak256(_result)) % max);
    requester.incomingRandomNumber(player, randomNumber);




    /// OWNER / MANAGEMENT RELATED FUNCTIONS

    function transferBalance(address to, uint amount) public onlyOwner
    to.transfer(amount);


    function setRNGCallbackGasConfig(uint gas, uint price) public onlyOwner
    rngCallbackGas = gas;
    oraclize_setCustomGasPrice(price);


    function destroyAndSend(address _recipient) public onlyOwner
    selfdestruct(_recipient);





    And I have the following test:



    pragma solidity ^0.4.24;

    import "truffle/Assert.sol";
    import "truffle/DeployedAddresses.sol";
    import "../contracts/EtherHiLoRandom.sol";

    contract TestEtherHiLoRandom is EtherHiLoRandomNumberRequester

    function incomingRandomNumber(address player, uint8 randomNumber)
    //require(false, "incomingRandomNumber");


    function incomingRandomNumberError(address player)
    //require(false, "incomingRandomNumberError");


    function testInitialBalanceUsingDeployedContract()
    EtherHiLoRandom subject = EtherHiLoRandom(DeployedAddresses.EtherHiLoRandom());

    bool result = subject.generateRandomNumber(msg.sender, 5);
    Assert.isTrue(result, "generateRandomNumber failed");


    Assert.isTrue(true, "itchy balls");





    My test fails in TestEtherHiLoRandom when it calls oraclize_newRandomDSQuery. The error that i get is:



     TestEtherHiLoRandom
    1) testInitialBalanceUsingDeployedContract
    > No events were emitted


    0 passing (3s) 1 failing

    1) TestEtherHiLoRandom
    testInitialBalanceUsingDeployedContract:
    Error: VM Exception while processing transaction: revert
    at Object.InvalidResponse (node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
    at node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
    at node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
    at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
    at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
    at XMLHttpRequest._setReadyState (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
    at XMLHttpRequest._onHttpResponseEnd (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
    at IncomingMessage.<anonymous> (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
    at endReadableNT (_stream_readable.js:1056:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)


    Any idea what i'm doing wrong? I haven't yet ran it on any test networks, only my local testrpc (i'm using ethereum-bridge and have verified that the Oraclize contract is properly deployed on the testrpc).










    share|improve this question
























      1












      1








      1








      I have the following contract that i plan on using as an external contract in a different contract:



      pragma solidity ^0.4.24;

      import "./Ownable.sol";
      import "./oraclizeAPI.sol";

      interface EtherHiLoRandomNumberRequester

      function incomingRandomNumber(address player, uint8 randomNumber) external;

      function incomingRandomNumberError(address player) external;



      interface EtherHiLoRandomNumberGenerator

      function generateRandomNumber(address player, uint8 max) external returns (bool);



      /// @title EtherHiLoRandom
      /// @dev the contract than handles the EtherHiLo random numbers
      contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator

      uint8 constant FAILED_ROLE = 69;

      uint public rngCallbackGas;

      mapping(bytes32 => uint) private failedRolls;
      mapping(bytes32 => address) private rollIdToPlayer;
      mapping(bytes32 => uint8) private rollIdToMax;
      mapping(bytes32 => address) private rollIdToCaller;

      constructor() public
      oraclize_setProof(proofType_Ledger);
      setRNGCallbackGasConfig(1500000, 10000000000);


      function generateRandomNumber(address player, uint8 max) external returns (bool)

      bytes32 rollId = oraclize_newRandomDSQuery(0, 7, rngCallbackGas);
      if (failedRolls[rollId] == FAILED_ROLE)
      delete failedRolls[rollId];
      delete rollIdToPlayer[rollId];
      delete rollIdToMax[rollId];
      delete rollIdToCaller[rollId];
      return false;


      rollIdToPlayer[rollId] = player;
      rollIdToMax[rollId] = max;
      rollIdToCaller[rollId] = msg.sender;
      return true;


      function __callback(bytes32 rollId, string _result, bytes _proof) public
      require(msg.sender == oraclize_cbAddress());

      address player = rollIdToPlayer[rollId];
      address caller = rollIdToCaller[rollId];
      uint8 max = rollIdToMax[rollId];

      // avoid reorgs
      if (player == address(0))
      failedRolls[rollId] = FAILED_ROLE;
      return;


      delete failedRolls[rollId];
      delete rollIdToPlayer[rollId];
      delete rollIdToMax[rollId];
      delete rollIdToCaller[rollId];

      EtherHiLoRandomNumberRequester requester = EtherHiLoRandomNumberRequester(caller);

      if (oraclize_randomDS_proofVerify__returnCode(rollId, _result, _proof) != 0)
      requester.incomingRandomNumberError(player);

      else
      uint8 randomNumber = uint8(uint(keccak256(_result)) % max);
      requester.incomingRandomNumber(player, randomNumber);




      /// OWNER / MANAGEMENT RELATED FUNCTIONS

      function transferBalance(address to, uint amount) public onlyOwner
      to.transfer(amount);


      function setRNGCallbackGasConfig(uint gas, uint price) public onlyOwner
      rngCallbackGas = gas;
      oraclize_setCustomGasPrice(price);


      function destroyAndSend(address _recipient) public onlyOwner
      selfdestruct(_recipient);





      And I have the following test:



      pragma solidity ^0.4.24;

      import "truffle/Assert.sol";
      import "truffle/DeployedAddresses.sol";
      import "../contracts/EtherHiLoRandom.sol";

      contract TestEtherHiLoRandom is EtherHiLoRandomNumberRequester

      function incomingRandomNumber(address player, uint8 randomNumber)
      //require(false, "incomingRandomNumber");


      function incomingRandomNumberError(address player)
      //require(false, "incomingRandomNumberError");


      function testInitialBalanceUsingDeployedContract()
      EtherHiLoRandom subject = EtherHiLoRandom(DeployedAddresses.EtherHiLoRandom());

      bool result = subject.generateRandomNumber(msg.sender, 5);
      Assert.isTrue(result, "generateRandomNumber failed");


      Assert.isTrue(true, "itchy balls");





      My test fails in TestEtherHiLoRandom when it calls oraclize_newRandomDSQuery. The error that i get is:



       TestEtherHiLoRandom
      1) testInitialBalanceUsingDeployedContract
      > No events were emitted


      0 passing (3s) 1 failing

      1) TestEtherHiLoRandom
      testInitialBalanceUsingDeployedContract:
      Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)


      Any idea what i'm doing wrong? I haven't yet ran it on any test networks, only my local testrpc (i'm using ethereum-bridge and have verified that the Oraclize contract is properly deployed on the testrpc).










      share|improve this question














      I have the following contract that i plan on using as an external contract in a different contract:



      pragma solidity ^0.4.24;

      import "./Ownable.sol";
      import "./oraclizeAPI.sol";

      interface EtherHiLoRandomNumberRequester

      function incomingRandomNumber(address player, uint8 randomNumber) external;

      function incomingRandomNumberError(address player) external;



      interface EtherHiLoRandomNumberGenerator

      function generateRandomNumber(address player, uint8 max) external returns (bool);



      /// @title EtherHiLoRandom
      /// @dev the contract than handles the EtherHiLo random numbers
      contract EtherHiLoRandom is usingOraclize, Ownable, EtherHiLoRandomNumberGenerator

      uint8 constant FAILED_ROLE = 69;

      uint public rngCallbackGas;

      mapping(bytes32 => uint) private failedRolls;
      mapping(bytes32 => address) private rollIdToPlayer;
      mapping(bytes32 => uint8) private rollIdToMax;
      mapping(bytes32 => address) private rollIdToCaller;

      constructor() public
      oraclize_setProof(proofType_Ledger);
      setRNGCallbackGasConfig(1500000, 10000000000);


      function generateRandomNumber(address player, uint8 max) external returns (bool)

      bytes32 rollId = oraclize_newRandomDSQuery(0, 7, rngCallbackGas);
      if (failedRolls[rollId] == FAILED_ROLE)
      delete failedRolls[rollId];
      delete rollIdToPlayer[rollId];
      delete rollIdToMax[rollId];
      delete rollIdToCaller[rollId];
      return false;


      rollIdToPlayer[rollId] = player;
      rollIdToMax[rollId] = max;
      rollIdToCaller[rollId] = msg.sender;
      return true;


      function __callback(bytes32 rollId, string _result, bytes _proof) public
      require(msg.sender == oraclize_cbAddress());

      address player = rollIdToPlayer[rollId];
      address caller = rollIdToCaller[rollId];
      uint8 max = rollIdToMax[rollId];

      // avoid reorgs
      if (player == address(0))
      failedRolls[rollId] = FAILED_ROLE;
      return;


      delete failedRolls[rollId];
      delete rollIdToPlayer[rollId];
      delete rollIdToMax[rollId];
      delete rollIdToCaller[rollId];

      EtherHiLoRandomNumberRequester requester = EtherHiLoRandomNumberRequester(caller);

      if (oraclize_randomDS_proofVerify__returnCode(rollId, _result, _proof) != 0)
      requester.incomingRandomNumberError(player);

      else
      uint8 randomNumber = uint8(uint(keccak256(_result)) % max);
      requester.incomingRandomNumber(player, randomNumber);




      /// OWNER / MANAGEMENT RELATED FUNCTIONS

      function transferBalance(address to, uint amount) public onlyOwner
      to.transfer(amount);


      function setRNGCallbackGasConfig(uint gas, uint price) public onlyOwner
      rngCallbackGas = gas;
      oraclize_setCustomGasPrice(price);


      function destroyAndSend(address _recipient) public onlyOwner
      selfdestruct(_recipient);





      And I have the following test:



      pragma solidity ^0.4.24;

      import "truffle/Assert.sol";
      import "truffle/DeployedAddresses.sol";
      import "../contracts/EtherHiLoRandom.sol";

      contract TestEtherHiLoRandom is EtherHiLoRandomNumberRequester

      function incomingRandomNumber(address player, uint8 randomNumber)
      //require(false, "incomingRandomNumber");


      function incomingRandomNumberError(address player)
      //require(false, "incomingRandomNumberError");


      function testInitialBalanceUsingDeployedContract()
      EtherHiLoRandom subject = EtherHiLoRandom(DeployedAddresses.EtherHiLoRandom());

      bool result = subject.generateRandomNumber(msg.sender, 5);
      Assert.isTrue(result, "generateRandomNumber failed");


      Assert.isTrue(true, "itchy balls");





      My test fails in TestEtherHiLoRandom when it calls oraclize_newRandomDSQuery. The error that i get is:



       TestEtherHiLoRandom
      1) testInitialBalanceUsingDeployedContract
      > No events were emitted


      0 passing (3s) 1 failing

      1) TestEtherHiLoRandom
      testInitialBalanceUsingDeployedContract:
      Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)


      Any idea what i'm doing wrong? I haven't yet ran it on any test networks, only my local testrpc (i'm using ethereum-bridge and have verified that the Oraclize contract is properly deployed on the testrpc).







      solidity truffle oraclize






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 '18 at 7:56









      Brian DilleyBrian Dilley

      2,63311921




      2,63311921






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314739%2foraclize-newrandomdsquery-oraclize-on-testrpc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314739%2foraclize-newrandomdsquery-oraclize-on-testrpc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Syphilis

          Darth Vader #20