Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it("should read ethereum price through oraclize", function(){
- return Contract.deployed().then(function(instance){
- return instance;
- }).then(function(instance){
- instance.updatePrice({value:20000});
- });
- });
- it("should wait 1 minute and read returned value", function(){
- setTimeout(function(){
- return Contract.deployed().then(function(instance){
- return instance;
- }).then(function(instance){
- return instance.ETHUSD();
- }).then(function(result){
- console.dir(result);
- });
- }, 1000*60*3);
- });
Add Comment
Please, Sign In to add comment