Guest User

Untitled

a guest
Apr 26th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. function test() public view returns(uint, uint) {
  2. return (block.timestamp, block.number);
  3. }
  4.  
  5. it("test", async function () {
  6. for (let i = 0; i < 100; i++) {
  7. console.log(await contractInstance.test())
  8. await sleep(1000)
  9. }
  10. })
  11.  
  12. [ { [String: '1524691464'] s: 1, e: 9, c: [ 1524691464 ] },
  13. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  14. [ { [String: '1524691465'] s: 1, e: 9, c: [ 1524691465 ] },
  15. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  16. [ { [String: '1524691466'] s: 1, e: 9, c: [ 1524691466 ] },
  17. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  18. [ { [String: '1524691467'] s: 1, e: 9, c: [ 1524691467 ] },
  19. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  20. [ { [String: '1524691468'] s: 1, e: 9, c: [ 1524691468 ] },
  21. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  22. [ { [String: '1524691469'] s: 1, e: 9, c: [ 1524691469 ] },
  23. { [String: '166'] s: 1, e: 2, c: [ 166 ] } ]
  24.  
  25. p {0: "1524690793", 1: "157"}
  26. p {0: "1524690793", 1: "157"}
  27. p {0: "1524690793", 1: "157"}
  28. p {0: "1524690793", 1: "157"}
  29. p {0: "1524690793", 1: "157"}
  30. p {0: "1524690793", 1: "157"}
  31. p {0: "1524690793", 1: "157"}
Add Comment
Please, Sign In to add comment