Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. WHAT I WANT TO DO (doesnt work)
  2. -----------------
  3. static from(txRequest) {
  4. return async (txRequest) => {
  5. const data = await txRequest.methods.requestData().call()
  6. return new RequestData(data, txRequest)
  7. }
  8. }
  9.  
  10.  
  11. WHAT WORKS
  12. -----------
  13. static async from(txRequest) {
  14. const data = await txRequest.methods.requestData().call()
  15. return new RequestData(data, txRequest)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement