gear-tech / gear-js

Tools and applications for interacting with Gear node.
http://gear-tech.io
GNU General Public License v3.0
32 stars 17 forks source link

Use one single method for get metadata #179

Closed EugenWay closed 2 years ago

EugenWay commented 2 years ago

File Location(s)

  1. Program.tsx
  2. ApiService.tsx -> SendMessageToProgram

Proposal

Now to get metadata from the backend in one case we use dispatch(getProgramAction(hash)) -> call program.data method, and another case (on MessageForm.tsx -> SendMessageToProgram) we use 'program.getMeta'

Find the optimal option to get metadata

AndrePanin commented 2 years ago

Not actual with new backend.